Skip to content

Commit

Permalink
doc id issue
Browse files Browse the repository at this point in the history
  • Loading branch information
itcon-pty-au committed Aug 29, 2024
1 parent d00c41b commit ade89ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudbk.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ async function exportToCloud() {
});
if (response.ok) {
const result = await response.json();
if (localStorage.getItem('db-doc-id')) {
if (!localStorage.getItem('db-doc-id')) {
const newDocId = result.insertedId;
dbDocIdInput.value = newDocId;
localStorage.setItem('db-doc-id', newDocId);
Expand Down

0 comments on commit ade89ca

Please sign in to comment.