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(command): import exclude directly to fix TDZ crash on app load (#6957)

Wolf Mermelstein33369019e188
diff --git a/apps/web/src/features/command/useCommandItems.ts b/apps/web/src/features/command/useCommandItems.ts
index 0dbad2f388..461c25d9d6 100644
--- a/apps/web/src/features/command/useCommandItems.ts
+++ b/apps/web/src/features/command/useCommandItems.ts
@@ -2,11 +2,14 @@ import { GO_TO_COMMAND_SCOPE, GO_TO_LEADER_KEY } from '@app/constants/hotkeys';
import {
type Bucket,
type EntityItem,
- exclude,
type QuickAccessItem,
type UserItem,
useQuickAccess,
} from '@core/context/quickAccess';
+// Imported from the module rather than the barrel: the barrel pulls in
+// QuickAccessProvider, which cycles back here, and `exclude` runs at module
+// evaluation time below.
+import { exclude } from '@core/context/quickAccess/types';
import { HotkeyTags } from '@core/hotkey/constants';
import {
type CommandWithInfo,