mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-21 08:11:24 +02:00
Fix recent workspaces when open in new window
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user