Skip to content

[5.10] Fixed JS issue with element deletion blockers after filtering#18760

Merged
brandonkelly merged 1 commit into5.10from
bugfix/5.10-element-deletion-blockers-array-fix
Apr 28, 2026
Merged

[5.10] Fixed JS issue with element deletion blockers after filtering#18760
brandonkelly merged 1 commit into5.10from
bugfix/5.10-element-deletion-blockers-array-fix

Conversation

@nfourtythree
Copy link
Copy Markdown
Contributor

Description

Noticed when registering deletion blockers and some getting filtered out that the array keys could become non-sequential e.g. 0, 2, 3

This meant the following JS would not work as expected and showed the confirm delete dialog instead of the blockers modal.

      if (!data.blockers.length) {
        await this.confirmAndDelete(data.totalElements);
        return;
      }

@brandonkelly brandonkelly merged commit 576c04b into 5.10 Apr 28, 2026
11 checks passed
@brandonkelly brandonkelly deleted the bugfix/5.10-element-deletion-blockers-array-fix branch April 28, 2026 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants