mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-14 23:25:25 +03:00
Always enable search page
This commit is contained in:
parent
cae11cbb86
commit
d57c958a6c
@ -19,7 +19,9 @@ export const ID_PLAYGROUND = 6;
|
||||
export default function useNavigation(
|
||||
variant: "primary" | "secondary" = "primary",
|
||||
) {
|
||||
const { data: config } = useSWR<FrigateConfig>("config");
|
||||
const { data: config } = useSWR<FrigateConfig>("config", {
|
||||
revalidateOnFocus: false,
|
||||
});
|
||||
|
||||
return useMemo(
|
||||
() =>
|
||||
@ -44,7 +46,6 @@ export default function useNavigation(
|
||||
icon: IoSearch,
|
||||
title: "Search",
|
||||
url: "/search",
|
||||
enabled: config?.semantic_search?.enabled,
|
||||
},
|
||||
{
|
||||
id: ID_EXPORT,
|
||||
@ -70,6 +71,6 @@ export default function useNavigation(
|
||||
enabled: ENV !== "production",
|
||||
},
|
||||
] as NavData[],
|
||||
[config?.plus.enabled, config?.semantic_search.enabled, variant],
|
||||
[config?.plus.enabled, variant],
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user