-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Labels
Description
Search first
- I searched and no similar issues were found
What Happened?
1) .insertBlock
continues numbering, when no such property was provided:
2) .insertBatchBlock
ignores empty blocks:
3) .insertBatchBlock
cannot handle before: true
:
Reproduce the Bug
1) steps:
- Create block
- Add numbering to it (
t n
) - Insert block under it as a sibling via API call
.insertBlock
with options{sibling: true}
2) steps:
- Create empty block
- Create non-empty child block
- Insert block under the parent via API call
.insertBatchBlock
with options{before: false, sibling: true}
- Call the same API method second time ← bug is here
- NOTE: the bug reproduces, but not every time: can't find the exact reason
3) steps:
- Create block
- Insert block before it via API call
.insertBatchBlock
with options{before: true, sibling: true}
Expected Behavior
-
No numbering via API insertion — only in manual mode.
-
and 3) obvious work of API method
Desktop or Mobile Platform Information
MacOS v13.4
Logseq Desktop v0.10.1