Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix: duplicate blocks opened by new split hotkey (#1990)

dev-rbb098bfd792c7
diff --git a/js/app/packages/app/component/GlobalHotkeys.tsx b/js/app/packages/app/component/GlobalHotkeys.tsx
index ab32b90955..f0027c5561 100644
--- a/js/app/packages/app/component/GlobalHotkeys.tsx
+++ b/js/app/packages/app/component/GlobalHotkeys.tsx
@@ -97,12 +97,14 @@ export default function GlobalShortcuts() {
const { openWithSplit } = useSplitLayout();
const createNewSplit = () => {
- const active = globalSplitManager()?.activeSplit()?.content();
- openWithSplit(active ?? { type: 'component', id: 'inbox' }, {
- referredFrom: 'hotkey',
- allowDuplicate: true,
- preferNewSplit: true,
- });
+ openWithSplit(
+ { type: 'component', id: 'inbox' },
+ {
+ referredFrom: 'hotkey',
+ allowDuplicate: true,
+ preferNewSplit: true,
+ }
+ );
return true;
};