From 17d337169dbd48db2de4fb62ec4f34aeaae1e406 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:12:10 +1000 Subject: [PATCH] fix(ui): do not reset limit when changing gallery view --- .../frontend/web/src/features/gallery/store/gallerySlice.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts b/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts index 24796cb329..d5d83e53e8 100644 --- a/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts +++ b/invokeai/frontend/web/src/features/gallery/store/gallerySlice.ts @@ -5,7 +5,6 @@ import { uniqBy } from 'lodash-es'; import type { ImageDTO } from 'services/api/types'; import type { BoardId, ComparisonMode, GalleryState, GalleryView, OrderDir } from './types'; -import { IMAGE_LIMIT } from './types'; const initialGalleryState: GalleryState = { selection: [], @@ -84,7 +83,6 @@ export const gallerySlice = createSlice({ galleryViewChanged: (state, action: PayloadAction) => { state.galleryView = action.payload; state.offset = 0; - state.limit = IMAGE_LIMIT; }, boardSearchTextChanged: (state, action: PayloadAction) => { state.boardSearchText = action.payload;