Skip to content

fix(textblocks): guard removal of non existing text block#12544

Merged
hamza221 merged 1 commit intomainfrom
fix/textblocks/delete-id-no-found
Mar 18, 2026
Merged

fix(textblocks): guard removal of non existing text block#12544
hamza221 merged 1 commit intomainfrom
fix/textblocks/delete-id-no-found

Conversation

@ChristophWurst
Copy link
Member

findIndex returns -1 when it can't find an element. -1 in splice will return the last element of the array.

@ChristophWurst
Copy link
Member Author

/backport to stable5.7

@hamza221 hamza221 enabled auto-merge March 10, 2026 14:50
@hamza221
Copy link
Contributor

Merci

findIndex returns -1 when it can't find an element. -1 in splice will
return the last element of the array.

Signed-off-by: Christoph Wurst <1374172+ChristophWurst@users.noreply.github.com>
@ChristophWurst ChristophWurst force-pushed the fix/textblocks/delete-id-no-found branch from b476c58 to 89df2c7 Compare March 18, 2026 07:27
@hamza221 hamza221 merged commit c3d9f2f into main Mar 18, 2026
41 checks passed
@hamza221 hamza221 deleted the fix/textblocks/delete-id-no-found branch March 18, 2026 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants