Skip to content

Commit

Permalink
Fix scrape dialog null values (#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
DingDongSoLong4 authored Mar 30, 2023
1 parent 2d8b6e1 commit 3ab8f4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Shared/ScrapeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export class ScrapeResult<T> {
) {
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);
Expand Down

0 comments on commit 3ab8f4a

Please sign in to comment.