diff --git a/src/components/NavigationConsole.tsx b/src/components/NavigationConsole.tsx index 629b506..33ca9f4 100644 --- a/src/components/NavigationConsole.tsx +++ b/src/components/NavigationConsole.tsx @@ -34,14 +34,14 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) { if (input.trim() === '') { setFilteredSpaces(existingSpaces.slice(0, 8)) } else { - const filtered = existingSpaces.filter(space => + const filtered = existingSpaces.filter(space => space.toLowerCase().includes(input.toLowerCase()) ).slice(0, 8) - + if (filtered.length === 0 || !filtered.includes(input)) { filtered.unshift(input) } - + setFilteredSpaces(filtered) } setSelectedIndex(0) @@ -88,7 +88,7 @@ export function NavigationConsole({ isOpen, onClose }: NavigationConsoleProps) { return ( <> -