Fix values being reset when changing mode (#4854)

This commit is contained in:
WithoutPants 2024-05-20 12:54:29 +10:00 committed by GitHub
parent dd84714a16
commit 1ffca39e1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {