Fix cookie jar query

This commit is contained in:
Gregory Schier
2024-10-09 11:26:19 -07:00
parent 4a81818d05
commit 2e2b3128c5
6 changed files with 9 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ export function useRecentCookieJars() {
}, [activeCookieJarId]);
const onlyValidIds = useMemo(
() => kv.value?.filter((id) => cookieJars.some((e) => e.id === id)) ?? [],
() => kv.value?.filter((id) => cookieJars?.some((e) => e.id === id)) ?? [],
[kv.value, cookieJars],
);