From 3ab8f4aca693577da1e930d16a48cfba1fb962d0 Mon Sep 17 00:00:00 2001 From: DingDongSoLong4 <99329275+DingDongSoLong4@users.noreply.github.com> Date: Fri, 31 Mar 2023 01:12:50 +0200 Subject: [PATCH] Fix scrape dialog null values (#3621) --- ui/v2.5/src/components/Shared/ScrapeDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/v2.5/src/components/Shared/ScrapeDialog.tsx b/ui/v2.5/src/components/Shared/ScrapeDialog.tsx index c1f27d689..7b6d39492 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);