diff --git a/invokeai/frontend/web/src/features/ui/store/uiSlice.ts b/invokeai/frontend/web/src/features/ui/store/uiSlice.ts index 71a26cb1f0..51262b9b90 100644 --- a/invokeai/frontend/web/src/features/ui/store/uiSlice.ts +++ b/invokeai/frontend/web/src/features/ui/store/uiSlice.ts @@ -10,7 +10,6 @@ export const initialUIState: UIState = { _version: 1, activeTab: 'txt2img', shouldShowImageDetails: false, - shouldHidePreview: false, shouldShowProgressInViewer: true, panels: {}, accordions: {}, @@ -27,9 +26,6 @@ export const uiSlice = createSlice({ setShouldShowImageDetails: (state, action: PayloadAction) => { state.shouldShowImageDetails = action.payload; }, - setShouldHidePreview: (state, action: PayloadAction) => { - state.shouldHidePreview = action.payload; - }, setShouldShowProgressInViewer: (state, action: PayloadAction) => { state.shouldShowProgressInViewer = action.payload; }, @@ -43,7 +39,7 @@ export const uiSlice = createSlice({ state, action: PayloadAction<{ id: string; isOpen: boolean }> ) => { - const { id, isOpen } = action.payload; + const { id, isOpen } = action.payload; state.accordions[id] = isOpen; }, expanderStateChanged: ( @@ -64,7 +60,6 @@ export const uiSlice = createSlice({ export const { setActiveTab, setShouldShowImageDetails, - setShouldHidePreview, setShouldShowProgressInViewer, panelsChanged, accordionStateChanged, diff --git a/invokeai/frontend/web/src/features/ui/store/uiTypes.ts b/invokeai/frontend/web/src/features/ui/store/uiTypes.ts index 4e371090cf..2cf9fd8aa6 100644 --- a/invokeai/frontend/web/src/features/ui/store/uiTypes.ts +++ b/invokeai/frontend/web/src/features/ui/store/uiTypes.ts @@ -13,10 +13,6 @@ export interface UIState { * Whether or not to show image details, e.g. metadata, workflow, etc. */ shouldShowImageDetails: boolean; - /** - * Whether or not to hide the preview. - */ - shouldHidePreview: boolean; /** * Whether or not to show progress in the viewer. */