You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(tasks[typ].length)logDebug(`\tQueuing ${tasks[typ].length}${typ} tasks for deletion from note`)
365
+
if(tasks[typ].length)logDebug(`\tQueuing ${tasks[typ].length}${typ} tasks for temporary deletion from note (so they can be re-inserted in the correct order)`)
366
366
// if (shouldBackupTasks) {
367
367
// await saveBackup(tasks[typ])
368
368
// }
@@ -396,7 +396,16 @@ function deleteExistingTasks(note: CoreNoteFields, tasks: ParagraphsGroupedByTyp
396
396
consttasksToDeleteByIndex=sortListBy(tasksToDelete,['lineIndex'])//NP API may give wrong results if lineIndexes are not in ASC order
397
397
logDebug(`\tsortTasks/deleteExistingTasks`,`After Sort Lines in Note:${note.paragraphs.length} | Lines to delete:${tasksToDelete.length}`)
0 commit comments