-
-
Notifications
You must be signed in to change notification settings - Fork 454
Open
Description
Operating system
None
Publii version
v.0.47.1 (build 17302)
Post editor
Block editor
Bug description
Location: app/src/components/block-editor/components/Block.vue:268
Problem: The condition if (!currentBlockIndex) incorrectly handles the edge case when findIndex returns -1 (block not found). In this case, !(-1) is false, so the code would decrement to -2 and attempt to return this.editor.content[-2].id, which is undefined or causes an error.
Steps to reproduce
No response
Relevant log output
Metadata
Metadata
Assignees
Labels
No labels