Skip to content

Commit 14364e8

Browse files
Default to null active id
1 parent 8cb4354 commit 14364e8

File tree

1 file changed

+1
-1
lines changed
  • apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs

1 file changed

+1
-1
lines changed

apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-tabs/resource-tabs.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ export function ResourceTabs({
278278
return next
279279
})
280280
if (anchorIdRef.current && removedIds.has(anchorIdRef.current)) {
281-
anchorIdRef.current = activeId
281+
anchorIdRef.current = null
282282
}
283283
// Serialize mutations so each onMutate sees the cache updated by the prior
284284
// one. Continue on individual failures so remaining removals still fire.

0 commit comments

Comments
 (0)