Merge performer list when saving scene from tagger (#2483)

This commit is contained in:
WithoutPants 2022-04-07 09:31:37 +10:00 committed by GitHub
parent 4c4d029c23
commit 346384b6a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -14,6 +14,7 @@
* Improved autotag performance. ([#2368](https://github.com/stashapp/stash/pull/2368))
### 🐛 Bug fixes
* Fix existing performers being lost when setting performers in the scene tagger. ([#2478](https://github.com/stashapp/stash/issues/2478))
* 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))

View file

@ -310,10 +310,9 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
title: resolveField("title", stashScene.title, scene.title),
details: resolveField("details", stashScene.details, scene.details),
date: resolveField("date", stashScene.date, scene.date),
performer_ids:
filteredPerformerIDs.length === 0
? stashScene.performers.map((p) => p.id)
: filteredPerformerIDs,
performer_ids: uniq(
stashScene.performers.map((p) => p.id).concat(filteredPerformerIDs)
),
studio_id: studioID,
cover_image: resolveField("cover_image", undefined, imgData),
url: resolveField("url", stashScene.url, scene.url),