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 split panel throw error (#140)
gbirman7f34b0593e34
diff --git a/js/app/packages/core/component/FormControls/DropdownMenu.tsx b/js/app/packages/core/component/FormControls/DropdownMenu.tsxindex df6010c413..330618268e 100644--- a/js/app/packages/core/component/FormControls/DropdownMenu.tsx+++ b/js/app/packages/core/component/FormControls/DropdownMenu.tsx@@ -1,5 +1,5 @@import MacroJump from '@app/component/MacroJump';-import { useSplitPanelOrThrow } from '@app/component/split-layout/layoutUtils';+import { useSplitPanel } from '@app/component/split-layout/layoutUtils';import { Popover, type PopoverRootProps } from '@kobalte/core/popover';import { createMutationObserver } from '@solid-primitives/mutation-observer';import {@@ -30,13 +30,7 @@ const DropdownMenu: ParentComponent<ref?: (ref: HTMLButtonElement) => void | HTMLButtonElement;} & PopoverRootProps> = (props) => {- const { panelRef } = (() => {- try {- return useSplitPanelOrThrow();- } catch (_err) {- return { panelRef: undefined };- }- })();+ const panelRef = useSplitPanel()?.panelRef;const [open, setOpen] = createSignal(props.open ?? false);const [triggerSize, setTriggerSize] = createSignal({ width: 0, height: 0 });const [popoverPosition, setPopoverPosition] = createSignal<