diff --git a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts index c86ebf3a664..00119291497 100644 --- a/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts +++ b/invokeai/frontend/web/src/features/controlLayers/konva/CanvasEntity/CanvasEntityAdapterBase.ts @@ -16,7 +16,7 @@ import { selectIsolatedTransformingPreview, } from 'features/controlLayers/store/canvasSettingsSlice'; import { - buildEntityIsHiddenSelector, + buildSelectIsHidden, buildSelectIsSelected, selectBboxRect, selectCanvasSlice, @@ -250,7 +250,7 @@ export abstract class CanvasEntityAdapterBase< assert(state !== undefined, 'Missing entity state on creation'); this.state = state; - this.selectIsHidden = buildEntityIsHiddenSelector(this.entityIdentifier); + this.selectIsHidden = buildSelectIsHidden(this.entityIdentifier); this.selectIsSelected = buildSelectIsSelected(this.entityIdentifier); /** diff --git a/invokeai/frontend/web/src/features/controlLayers/store/selectors.ts b/invokeai/frontend/web/src/features/controlLayers/store/selectors.ts index 6e7c95b3ec0..45881058130 100644 --- a/invokeai/frontend/web/src/features/controlLayers/store/selectors.ts +++ b/invokeai/frontend/web/src/features/controlLayers/store/selectors.ts @@ -308,7 +308,7 @@ const getSelectIsTypeHidden = (type: CanvasEntityType) => { /** * Builds a selector taht selects if the entity is hidden. */ -export const buildEntityIsHiddenSelector = (entityIdentifier: CanvasEntityIdentifier) => { +export const buildSelectIsHidden = (entityIdentifier: CanvasEntityIdentifier) => { const selectIsTypeHidden = getSelectIsTypeHidden(entityIdentifier.type); return createSelector( [selectCanvasSlice, selectIsTypeHidden, selectIsStaging, selectIsolatedStagingPreview],