fix(ui): reset last started item id when doing autoswitch

This commit is contained in:
psychedelicious
2025-06-23 11:38:13 +10:00
parent e10afe3026
commit 7208373576

View File

@@ -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.