Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
fix(splits): fix no focused split after close first (#280)
Seamus7164adfa8b4f
diff --git a/js/app/packages/app/component/split-layout/SplitLayout.tsx b/js/app/packages/app/component/split-layout/SplitLayout.tsxindex e36969058d..a6395a431d 100644--- a/js/app/packages/app/component/split-layout/SplitLayout.tsx+++ b/js/app/packages/app/component/split-layout/SplitLayout.tsx@@ -170,14 +170,10 @@ function createSplitFocusTracker(props: {};const findNextSplitToActivate = (splitIndex: number): SplitId | undefined => {- const wasOnlySplit = splitIndex === 0;-- // If the removed split was the only split,- // we automatically insert and activate a new one- // Don't need to handle anything here- if (wasOnlySplit) return undefined;-- const nextSplitId = props.splits()[splitIndex - 1].id;+ const nextSplitId =+ splitIndex === 0+ ? props.splits()[0].id+ : props.splits()[splitIndex - 1].id;return nextSplitId;};