Skip to content

Commit

Permalink
Fix values being reset when changing mode (stashapp#4854)
Browse files Browse the repository at this point in the history
  • Loading branch information
WithoutPants authored and halkeye committed Sep 1, 2024
1 parent ed72f4d commit 33091a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Images/EditImagesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ export const EditImagesDialog: React.FC<IListOperationProps> = (
setExistingTagIds(updateTagIds);
setExistingGalleryIds(updateGalleryIds);
setOrganized(updateOrganized);
}, [props.selected, performerMode, tagMode]);
}, [props.selected]);

useEffect(() => {
if (checkboxRef.current) {
Expand Down
2 changes: 1 addition & 1 deletion ui/v2.5/src/components/Scenes/EditScenesDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export const EditScenesDialog: React.FC<IListOperationProps> = (
setExistingTagIds(updateTagIds);
setExistingMovieIds(updateMovieIds);
setOrganized(updateOrganized);
}, [props.selected, performerMode, tagMode, movieMode]);
}, [props.selected]);

useEffect(() => {
if (checkboxRef.current) {
Expand Down

0 comments on commit 33091a6

Please sign in to comment.