Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Prevent drag and drop from accessing prop when undefined #1219

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

vsgoulart
Copy link
Contributor

Closes #1218

  • This PR adds a new form-js element or visually changes an existing component.

@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Jul 3, 2024
@vsgoulart vsgoulart requested a review from Skaiir July 3, 2024 17:54
Comment on lines +81 to +82
formField = this._formFieldRegistry.get(formFieldNode.dataset.id) || { layout: {} };
columns = formField.layout.columns;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Skaiir this bug seems to be only happening on the Desktop modeler on Windows, I couldn't reproduce it locally but this is the issue if you follow the stack trace

Could you give it a try and reproduce it on your machine? (It should be ok to merge this anyway)

@vsgoulart vsgoulart changed the base branch from develop to main July 3, 2024 17:58
@Skaiir Skaiir merged commit 9384858 into main Jul 30, 2024
12 of 13 checks passed
@Skaiir Skaiir deleted the fix-undefined-validateDrop branch July 30, 2024 09:27
@bpmn-io-tasks bpmn-io-tasks bot removed the needs review Review pending label Jul 30, 2024
Skaiir added a commit that referenced this pull request Aug 6, 2024
Skaiir added a commit that referenced this pull request Aug 16, 2024
@bpmn-io-tasks bpmn-io-tasks bot added the needs review Review pending label Aug 16, 2024
Skaiir added a commit that referenced this pull request Aug 20, 2024
Skaiir added a commit that referenced this pull request Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Review pending
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'layout')
2 participants