mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-02-12 20:25:07 -05:00
fix(ui): reset last started item id when doing autoswitch
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user