mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix values being reset when changing mode (#4854)
This commit is contained in:
@@ -171,7 +171,7 @@ export const EditImagesDialog: React.FC<IListOperationProps> = (
|
|||||||
setExistingTagIds(updateTagIds);
|
setExistingTagIds(updateTagIds);
|
||||||
setExistingGalleryIds(updateGalleryIds);
|
setExistingGalleryIds(updateGalleryIds);
|
||||||
setOrganized(updateOrganized);
|
setOrganized(updateOrganized);
|
||||||
}, [props.selected, performerMode, tagMode]);
|
}, [props.selected]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (checkboxRef.current) {
|
if (checkboxRef.current) {
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ export const EditScenesDialog: React.FC<IListOperationProps> = (
|
|||||||
setExistingTagIds(updateTagIds);
|
setExistingTagIds(updateTagIds);
|
||||||
setExistingMovieIds(updateMovieIds);
|
setExistingMovieIds(updateMovieIds);
|
||||||
setOrganized(updateOrganized);
|
setOrganized(updateOrganized);
|
||||||
}, [props.selected, performerMode, tagMode, movieMode]);
|
}, [props.selected]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (checkboxRef.current) {
|
if (checkboxRef.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user