summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/context/local.tsx
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-10-14 07:14:26 -0500
committerAdam <[email protected]>2025-10-14 07:16:24 -0500
commit37e6c8342f1f63a95918a71ac78130b9d10d1103 (patch)
treef5baccd7d4d97a0171eb224c9f7d88ec62b14aac /packages/desktop/src/context/local.tsx
parentc04e8929911be2433063e9a53cccf8d2dfd232b8 (diff)
downloadopencode-37e6c8342f1f63a95918a71ac78130b9d10d1103.tar.gz
opencode-37e6c8342f1f63a95918a71ac78130b9d10d1103.zip
wip: css and ui packages
Diffstat (limited to 'packages/desktop/src/context/local.tsx')
-rw-r--r--packages/desktop/src/context/local.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx
index 276f87192..e9fe8ee5c 100644
--- a/packages/desktop/src/context/local.tsx
+++ b/packages/desktop/src/context/local.tsx
@@ -146,7 +146,10 @@ function init() {
}
for (const p of sync.data.changes) {
if (store.node[p.path] === undefined) {
- fetch(p.path).then(() => setStore("node", p.path, "status", p))
+ fetch(p.path).then(() => {
+ if (store.node[p.path] === undefined) return
+ setStore("node", p.path, "status", p)
+ })
} else {
setStore("node", p.path, "status", p)
}