mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
tidy(ui): rename canvas state "regions" -> "regionalGuidance"
This commit is contained in:
committed by
Kent Keirsey
parent
7725baf6c8
commit
0e0076d819
@@ -8,7 +8,7 @@ import { selectCanvasSlice, selectSelectedEntityIdentifier } from 'features/cont
|
||||
import { memo } from 'react';
|
||||
|
||||
const selectEntityIds = createMemoizedSelector(selectCanvasSlice, (canvas) => {
|
||||
return canvas.regions.entities.map(mapId).reverse();
|
||||
return canvas.regionalGuidance.entities.map(mapId).reverse();
|
||||
});
|
||||
const selectIsSelected = createSelector(selectSelectedEntityIdentifier, (selectedEntityIdentifier) => {
|
||||
return selectedEntityIdentifier?.type === 'regional_guidance';
|
||||
|
||||
@@ -31,8 +31,8 @@ const getIndexAndCount = (
|
||||
};
|
||||
} else if (type === 'regional_guidance') {
|
||||
return {
|
||||
index: canvas.regions.entities.findIndex((entity) => entity.id === id),
|
||||
count: canvas.regions.entities.length,
|
||||
index: canvas.regionalGuidance.entities.findIndex((entity) => entity.id === id),
|
||||
count: canvas.regionalGuidance.entities.length,
|
||||
};
|
||||
} else if (type === 'inpaint_mask') {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user