mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Select first tagger result if resolved (#2051)
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
* Added plugin hook for Tag merge operation. ([#2010](https://github.com/stashapp/stash/pull/2010))
|
* Added plugin hook for Tag merge operation. ([#2010](https://github.com/stashapp/stash/pull/2010))
|
||||||
|
|
||||||
### 🐛 Bug fixes
|
### 🐛 Bug fixes
|
||||||
|
* Select first scene result in scene tagger where possible. ([#2051](https://github.com/stashapp/stash/pull/2051))
|
||||||
* Reject dates with invalid format. ([#2052](https://github.com/stashapp/stash/pull/2052))
|
* Reject dates with invalid format. ([#2052](https://github.com/stashapp/stash/pull/2052))
|
||||||
* Fix Autostart Video on Play Selected and Continue Playlist default settings not working. ([#2050](https://github.com/stashapp/stash/pull/2050))
|
* Fix Autostart Video on Play Selected and Continue Playlist default settings not working. ([#2050](https://github.com/stashapp/stash/pull/2050))
|
||||||
* Fix "Custom Performer Images" feature picking up non-image files. ([#2017](https://github.com/stashapp/stash/pull/2017))
|
* Fix "Custom Performer Images" feature picking up non-image files. ([#2017](https://github.com/stashapp/stash/pull/2017))
|
||||||
|
|||||||
@@ -655,7 +655,7 @@ const StashSearchResult: React.FC<IStashSearchResultProps> = ({
|
|||||||
|
|
||||||
export interface ISceneSearchResults {
|
export interface ISceneSearchResults {
|
||||||
target: GQL.SlimSceneDataFragment;
|
target: GQL.SlimSceneDataFragment;
|
||||||
scenes: GQL.ScrapedSceneDataFragment[];
|
scenes: IScrapedScene[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SceneSearchResults: React.FC<ISceneSearchResults> = ({
|
export const SceneSearchResults: React.FC<ISceneSearchResults> = ({
|
||||||
@@ -667,6 +667,8 @@ export const SceneSearchResults: React.FC<ISceneSearchResults> = ({
|
|||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!scenes) {
|
if (!scenes) {
|
||||||
setSelectedResult(undefined);
|
setSelectedResult(undefined);
|
||||||
|
} else if (scenes.length > 0 && scenes[0].resolved) {
|
||||||
|
setSelectedResult(0);
|
||||||
}
|
}
|
||||||
}, [scenes]);
|
}, [scenes]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user