mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-14 03:25:29 -05:00
fix(ui): do not attempt to recall ref images from canvas metadata
This commit is contained in:
@@ -5,7 +5,6 @@ import { createMemoizedSelector } from 'app/store/createMemoizedSelector';
|
|||||||
import type { PersistConfig, RootState } from 'app/store/store';
|
import type { PersistConfig, RootState } from 'app/store/store';
|
||||||
import { clamp } from 'es-toolkit/compat';
|
import { clamp } from 'es-toolkit/compat';
|
||||||
import { getPrefixedId } from 'features/controlLayers/konva/util';
|
import { getPrefixedId } from 'features/controlLayers/konva/util';
|
||||||
import { canvasMetadataRecalled } from 'features/controlLayers/store/canvasSlice';
|
|
||||||
import type { FLUXReduxImageInfluence, RefImagesState } from 'features/controlLayers/store/types';
|
import type { FLUXReduxImageInfluence, RefImagesState } from 'features/controlLayers/store/types';
|
||||||
import { zModelIdentifierField } from 'features/nodes/types/common';
|
import { zModelIdentifierField } from 'features/nodes/types/common';
|
||||||
import type { ApiModelConfig, FLUXReduxModelConfig, ImageDTO, IPAdapterModelConfig } from 'services/api/types';
|
import type { ApiModelConfig, FLUXReduxModelConfig, ImageDTO, IPAdapterModelConfig } from 'services/api/types';
|
||||||
@@ -232,12 +231,6 @@ export const refImagesSlice = createSlice({
|
|||||||
},
|
},
|
||||||
refImagesReset: () => getInitialRefImagesState(),
|
refImagesReset: () => getInitialRefImagesState(),
|
||||||
},
|
},
|
||||||
extraReducers(builder) {
|
|
||||||
builder.addCase(canvasMetadataRecalled, (state, action) => {
|
|
||||||
const { referenceImages } = action.payload;
|
|
||||||
state.entities = referenceImages;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export const {
|
export const {
|
||||||
|
|||||||
Reference in New Issue
Block a user