mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix scrape dialog null values (#3621)
This commit is contained in:
@@ -36,7 +36,7 @@ export class ScrapeResult<T> {
|
|||||||
) {
|
) {
|
||||||
this.originalValue = originalValue ?? undefined;
|
this.originalValue = originalValue ?? undefined;
|
||||||
this.newValue = newValue ?? undefined;
|
this.newValue = newValue ?? undefined;
|
||||||
const hasNewValue = newValue !== undefined;
|
const hasNewValue = this.newValue !== undefined;
|
||||||
|
|
||||||
const valuesEqual = isEqual(originalValue, newValue);
|
const valuesEqual = isEqual(originalValue, newValue);
|
||||||
this.useNewValue = useNewValue ?? (hasNewValue && !valuesEqual);
|
this.useNewValue = useNewValue ?? (hasNewValue && !valuesEqual);
|
||||||
|
|||||||
Reference in New Issue
Block a user