chore: reset palette state

This commit is contained in:
Aslam H committed 2024-10-22 21:29:08 +07:00
1 parent 2e00e9d692
commit adbb9a6b95
4 files changed
+11 -6

No files matched your search

@@ -149,6 +149,13 @@ export function RealCommandPalette() {
[bounce, setOpen],
)
React.useEffect(() => {
if (!open) {
setInputValue("")
setActivePage("home")
}
}, [open, setActivePage, setInputValue])
const filteredCommands = React.useMemo(
() => getFilteredCommands(),
[getFilteredCommands],