From 7208373576ce29cf39f0837c39da1d88cba88a75 Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 23 Jun 2025 11:38:13 +1000 Subject: [PATCH] fix(ui): reset last started item id when doing autoswitch --- .../features/controlLayers/components/SimpleSession/context.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/context.tsx b/invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/context.tsx index 45472b9ffd..efa2b6c907 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/context.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/SimpleSession/context.tsx @@ -369,6 +369,7 @@ export const CanvasSessionContextProvider = memo( items.findIndex(({ item_id }) => item_id === lastStartedItemId) !== -1 ) { $selectedItemId.set(lastStartedItemId); + $lastStartedItemId.set(null); } // If an item is selected and it is not in the list of items, un-set it. This effect will run again and we'll // the above case, selecting the first item if there are any.