diff --git a/ui/v2.5/src/components/Changelog/versions/v0140.md b/ui/v2.5/src/components/Changelog/versions/v0140.md index 8985ce4ca..28571f097 100644 --- a/ui/v2.5/src/components/Changelog/versions/v0140.md +++ b/ui/v2.5/src/components/Changelog/versions/v0140.md @@ -9,6 +9,7 @@ * Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368)) ### 🐛 Bug fixes +* Fix scene fields being overwritten with empty values when saving from the scene tagger. ([#2461](https://github.com/stashapp/stash/pull/2461)) * Fix Is Missing Date filter not including null date values. ([#2434](https://github.com/stashapp/stash/pull/2434)) * Fix Open Stash systray menu item not opening stash when Skip Opening Browser was enabled. ([#2418](https://github.com/stashapp/stash/pull/2418)) * Fix error saving a scene from the tagger when the scene has stash ids. ([#2408](https://github.com/stashapp/stash/pull/2408)) diff --git a/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx b/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx index a4765ecd1..2a10cc361 100755 --- a/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx +++ b/ui/v2.5/src/components/Tagger/scenes/StashSearchResult.tsx @@ -275,7 +275,10 @@ const StashSearchResult: React.FC = ({ ); function resolveField(field: string, stashField: T, remoteField: T) { - if (excludedFieldList.includes(field)) { + // #2452 - don't overwrite fields that are already set if the remote field is empty + const remoteFieldIsNull = + remoteField === null || remoteField === undefined; + if (excludedFieldList.includes(field) || remoteFieldIsNull) { return stashField; }