Skip to content

Commit

Permalink
fix(ui): do not reset limit when changing gallery view
Browse files Browse the repository at this point in the history
  • Loading branch information
psychedelicious committed Jun 28, 2024
1 parent 37fbe86 commit 619ca5a
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down Expand Up @@ -84,7 +83,6 @@ export const gallerySlice = createSlice({
galleryViewChanged: (state, action: PayloadAction<GalleryView>) => {
state.galleryView = action.payload;
state.offset = 0;
state.limit = IMAGE_LIMIT;
},
boardSearchTextChanged: (state, action: PayloadAction<string>) => {
state.boardSearchText = action.payload;
Expand Down

0 comments on commit 619ca5a

Please sign in to comment.