Skip to content

Commit a9bc29b

Browse files
fix(app): prevent command palette first-open flash (anomalyco#35858)
1 parent 206631e commit a9bc29b

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/app/src/components/dialog-select-file.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,11 @@ import {
2020
uniqueCommandPaletteEntries,
2121
type CommandPaletteEntry,
2222
} from "./command-palette"
23+
import { DialogCommandPaletteV2 } from "./dialog-command-palette-v2"
2324

2425
const DialogSelectFileV2 = lazy(() =>
2526
import("./dialog-select-directory-v2").then((module) => ({ default: module.DialogSelectDirectoryV2 })),
2627
)
27-
const DialogCommandPaletteV2 = lazy(() =>
28-
import("./dialog-command-palette-v2").then((module) => ({ default: module.DialogCommandPaletteV2 })),
29-
)
30-
3128
type DialogSelectFileMode = "all" | "files"
3229

3330
export function DialogSelectFile(props: { mode?: DialogSelectFileMode; onOpenFile?: (path: string) => void }) {

0 commit comments

Comments
 (0)