mirror of
https://github.com/linsa-io/linsa.git
synced 2026-03-26 19:11:17 +01:00
chore: reset palette state
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user