A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dasl-sync offline save issue

+12 -10
+12 -10
src/components/transformer/output/bytes/dasl-sync/element.js
··· 107 107 merging.value = { isBusy: true, lastCID: merging.value.lastCID }; 108 108 109 109 this.merge(l, r).then(async (c) => { 110 - container.value = c; 110 + try { 111 + container.value = c; 111 112 112 - if (c.cid === merging.value.lastCID) return; 113 + if (c.cid === merging.value.lastCID) return; 113 114 114 - const bytes = this.save(c); 115 + const bytes = this.save(c); 115 116 116 - if (c.cid !== l.cid) { 117 - await saveLocal(bytes); 118 - } 117 + if (c.cid !== l.cid) { 118 + await saveLocal(bytes); 119 + } 119 120 120 - if (remote.ready() && rs === "loaded" && c.cid !== r.cid) { 121 - await saveRemote(bytes); 121 + if (remote.ready() && rs === "loaded" && c.cid !== r.cid) { 122 + await saveRemote(bytes); 123 + } 124 + } finally { 125 + merging.value = { isBusy: false, lastCID: c.cid ?? "" }; 122 126 } 123 - 124 - merging.value = { isBusy: false, lastCID: c.cid ?? "" }; 125 127 }); 126 128 }); 127 129 } else {