Skip to content

Commit 3862694

Browse files
author
Attila Cseh
committed
code review fixes
1 parent 8d5d826 commit 3862694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

invokeai/frontend/web/src/features/gallery/components/ImageGrid/GalleryImage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const buildOnClick =
121121
if (currentClickedIndex < lastClickedIndex) {
122122
imagesToSelect.reverse();
123123
}
124-
dispatch(selectionChanged(imagesToSelect));
124+
dispatch(selectionChanged(uniq(selection.concat(imagesToSelect))));
125125
}
126126
} else if (ctrlKey || metaKey) {
127127
if (selection.some((n) => n === imageName) && selection.length > 1) {

0 commit comments

Comments
 (0)