Skip to content

Fix error badge state when deleting a node - #6050

Merged
knolleary merged 1 commit into
node-red:mainfrom
GogoVega:fix-error-badge-with-deleted-nodes
Nov 11, 2026
Merged

knolleary merged 1 commit into
node-red:mainfrom
GogoVega:fix-error-badge-with-deleted-nodes

Conversation

@GogoVega

Copy link
Copy Markdown
Contributor

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Proposed changes

From #6039 (comment):

Deleting an invalid node does not update the flow's invalid state.

Note: The issue highlights another edge case: adding a node and then deleting it (without using the undo/redo history) results in the flow being marked as unchanged. While theoretically correct (since the flow itself has not changed), it is incorrect from the perspective of the history, as two entries have been created. Furthermore, the global dirty state is set to true. @knolleary, I would like your opinion on this one.

Checklist

  • I have read the contribution guidelines
  • For non-bugfix PRs, I have discussed this change on the forum/slack team.
  • I have run npm run test to verify the unit tests pass
  • I have added suitable unit tests to cover the new/changed functionality

@knolleary
knolleary merged commit b1cbce4 into node-red:main Nov 11, 2026
3 checks passed
@GogoVega
GogoVega deleted the fix-error-badge-with-deleted-nodes branch November 11, 2026 11:00
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