Skip to content

Source node fix#75

Merged
MaddieWright merged 1 commit intoUBCMint:mainfrom
katelyn-chun:feature/fix-source-node/frontend/katelyn-chun
Mar 13, 2026
Merged

Source node fix#75
MaddieWright merged 1 commit intoUBCMint:mainfrom
katelyn-chun:feature/fix-source-node/frontend/katelyn-chun

Conversation

@katelyn-chun
Copy link
Contributor

What?

Fixed the source node to be turned on and off only when the user clicks it.


How?

Used a handleClick function for the onClick event handler and removed the onConnect handler for the Handle component to stop unwanted state changes.


Testing

Connected the source node to other nodes and ensured it stayed off unless clicked.

Copy link
Collaborator

@MaddieWright MaddieWright left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@MaddieWright MaddieWright merged commit c239eca into UBCMint:main Mar 13, 2026
1 check failed
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