diff --git a/ui/v2.5/src/components/Shared/ScrapeDialog.tsx b/ui/v2.5/src/components/Shared/ScrapeDialog.tsx index c1f27d689d0..7b6d39492e0 100644 --- a/ui/v2.5/src/components/Shared/ScrapeDialog.tsx +++ b/ui/v2.5/src/components/Shared/ScrapeDialog.tsx @@ -36,7 +36,7 @@ export class ScrapeResult { ) { this.originalValue = originalValue ?? undefined; this.newValue = newValue ?? undefined; - const hasNewValue = newValue !== undefined; + const hasNewValue = this.newValue !== undefined; const valuesEqual = isEqual(originalValue, newValue); this.useNewValue = useNewValue ?? (hasNewValue && !valuesEqual);