mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Don't overwrite with empty values in tagger (#2461)
This commit is contained in:
@@ -9,6 +9,7 @@
|
|||||||
* Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368))
|
* Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368))
|
||||||
|
|
||||||
### 🐛 Bug fixes
|
### 🐛 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 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 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))
|
* Fix error saving a scene from the tagger when the scene has stash ids. ([#2408](https://github.com/stashapp/stash/pull/2408))
|
||||||
|
|||||||
@@ -275,7 +275,10 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
|
|||||||
);
|
);
|
||||||
|
|
||||||
function resolveField<T>(field: string, stashField: T, remoteField: T) {
|
function resolveField<T>(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;
|
return stashField;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user