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(layout): layoutManager shouldn't default create on reconcile (#171)
teo4240373cd71d
diff --git a/js/app/packages/app/component/split-layout/layoutManager.ts b/js/app/packages/app/component/split-layout/layoutManager.tsindex a51cf0a79d..320c44865b 100644--- a/js/app/packages/app/component/split-layout/layoutManager.ts+++ b/js/app/packages/app/component/split-layout/layoutManager.ts@@ -547,7 +547,7 @@ export function createSplitLayout(return handle;}- function removeSplit(id: SplitId) {+ function removeSplit(id: SplitId, createNewOnEmpty: boolean = true) {const idx = state.splits.findIndex((s) => s.id === id);if (idx < 0) return;@@ -564,7 +564,7 @@ export function createSplitLayout(dispatchEvent(SplitEvent.Remove, { splitId: id, splitIndex: idx });- if (nextSplits.length === 0) {+ if (nextSplits.length === 0 && createNewOnEmpty) {createNewSplit(DEFAULT_SPLIT_CONTENT);}}@@ -610,7 +610,7 @@ export function createSplitLayout(];for (const splitToRemove of splitsToRemove) {- removeSplit(splitToRemove.id);+ removeSplit(splitToRemove.id, false);}for (const split of newSplits) {