Treat edited values as scraped (#2702)

* Treat edited values as scraped
* Fix scrape selection on change
This commit is contained in:
WithoutPants 2022-06-30 09:25:13 +10:00 committed by GitHub
parent b3bc5b999f
commit d32e375521
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -7,6 +7,7 @@
* Moved Filter and Saved Filters buttons out of the query input field. ([#2668](https://github.com/stashapp/stash/pull/2668))
### 🐛 Bug fixes
* Fix fields disappearing after creating missing objects in the scrape dialog. ([#2702](https://github.com/stashapp/stash/pull/2702))
* Fix saved filters with uppercase characters not appearing in filtered results. ([#2698](https://github.com/stashapp/stash/pull/2698))
* Fix query results not updating when clearing search query field. ([#2686](https://github.com/stashapp/stash/pull/2686))
* Fix incorrect field name in movie export json. ([#2664](https://github.com/stashapp/stash/pull/2664))

View File

@ -45,8 +45,11 @@ export class ScrapeResult<T> {
const ret = clone(this);
ret.newValue = value;
ret.useNewValue = isEqual(ret.newValue, ret.originalValue);
ret.scraped = ret.useNewValue;
ret.useNewValue = !isEqual(ret.newValue, ret.originalValue);
// #2691 - if we're setting the value, assume it should be treated as
// scraped
ret.scraped = true;
return ret;
}