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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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