Skip to content

Conversation

@xcqwan
Copy link
Owner

@xcqwan xcqwan commented Apr 18, 2023

Thanks for submitting a pull request to RGL!

Please reference an open issue. If one has not been created, please create one along with a failing
example or test case.

Please do not commit built files (/dist) to pull requests. They are built only at release.

layout = []

this.props.onDrag(layout, oldDragItem, l, placeholder, e, node);

Copy link

Choose a reason for hiding this comment

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

the code review.

It looks like the patch is adding a line of code that sets the 'layout' variable to an empty array. This can be problematic if the 'layout' variable is being used elsewhere and is expecting a populated array. It is also possible that this line of code is not necessary and can be removed as it is not currently being used.

It might be a good idea to check the surrounding code to see what the 'layout' variable is used for, and why it is being set to an empty array. If the code is related to an event handler, it should also be tested to make sure it works as expected.

@github-actions github-actions bot added the core label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant