Fix recent workspaces when open in new window

This commit is contained in:
Gregory Schier
2025-06-06 14:10:30 -07:00
parent fcda6f8d32
commit f62e90297d
2 changed files with 20 additions and 16 deletions

View File

@@ -30,9 +30,8 @@ export function getKeyValueRaw({
key: string | string[];
}) {
const key = buildKeyValueKey(keyOrKeys);
const kv = jotaiStore
.get(keyValuesAtom)
.find((kv) => kv.namespace === namespace && kv?.key === key);
const keyValues = jotaiStore.get(keyValuesAtom);
const kv = keyValues.find((kv) => kv.namespace === namespace && kv?.key === key);
return kv ?? null;
}