Skip to content

Commit

Permalink
fix: Full export detection
Browse files Browse the repository at this point in the history
  • Loading branch information
brunojm committed Jul 13, 2023
1 parent d133f78 commit c819a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -555,11 +555,11 @@ export async function syncHighlights(auto?: boolean, setNotification?, setIsSync
if (auto) {
await delay(2000)
}
const isForceCompleteSync = logseq.settings!.lastSyncFailed
const parentDeleted = await logseq.Editor.getPage(parentPageName) === null || isForceCompleteSync
const parentDeleted = await logseq.Editor.getPage(parentPageName) === null
if (parentDeleted) {
url += `&parentPageDeleted=${parentDeleted}`
}
url += `&lastSyncFailed=${logseq.settings!.lastSyncFailed}`
let response, data: ExportRequestResponse
try {
response = await window.fetch(
Expand Down

0 comments on commit c819a1f

Please sign in to comment.