Fix scrape dialog null values (#3621)

This commit is contained in:
DingDongSoLong4
2023-03-31 01:12:50 +02:00
committed by GitHub
parent 2d8b6e1722
commit 3ab8f4aca6

View File

@@ -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);