mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not reset limit when changing gallery view
This commit is contained in:
parent
1468f4d37e
commit
17d337169d
@ -5,7 +5,6 @@ import { uniqBy } from 'lodash-es';
|
|||||||
import type { ImageDTO } from 'services/api/types';
|
import type { ImageDTO } from 'services/api/types';
|
||||||
|
|
||||||
import type { BoardId, ComparisonMode, GalleryState, GalleryView, OrderDir } from './types';
|
import type { BoardId, ComparisonMode, GalleryState, GalleryView, OrderDir } from './types';
|
||||||
import { IMAGE_LIMIT } from './types';
|
|
||||||
|
|
||||||
const initialGalleryState: GalleryState = {
|
const initialGalleryState: GalleryState = {
|
||||||
selection: [],
|
selection: [],
|
||||||
@ -84,7 +83,6 @@ export const gallerySlice = createSlice({
|
|||||||
galleryViewChanged: (state, action: PayloadAction<GalleryView>) => {
|
galleryViewChanged: (state, action: PayloadAction<GalleryView>) => {
|
||||||
state.galleryView = action.payload;
|
state.galleryView = action.payload;
|
||||||
state.offset = 0;
|
state.offset = 0;
|
||||||
state.limit = IMAGE_LIMIT;
|
|
||||||
},
|
},
|
||||||
boardSearchTextChanged: (state, action: PayloadAction<string>) => {
|
boardSearchTextChanged: (state, action: PayloadAction<string>) => {
|
||||||
state.boardSearchText = action.payload;
|
state.boardSearchText = action.payload;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user