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: context menu multi-select deletion #5

Merged
merged 1 commit into from
Aug 15, 2022
Merged

fix: context menu multi-select deletion #5

merged 1 commit into from
Aug 15, 2022

Conversation

HollowMan6
Copy link
Collaborator

Sometimes in the deletion process, the block in the scope (scope.block, which is the block user right-clicked on for the Context menu) can get deleted prior to blockSelection.forEach completes, which leads to scope.block.workspace returing null. so this PR fixes this by getting scope.block.workspace before the loop and also applying this to other actions in the context menu.

Also updates package.json to the latest.

Signed-off-by: Hollow Man hollowman@opensuse.org

Signed-off-by: Hollow Man <hollowman@opensuse.org>
Copy link
Member

@ewpatton ewpatton left a comment

Choose a reason for hiding this comment

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

LGTM

@ewpatton ewpatton merged commit 88b56e5 into mit-cml:main Aug 15, 2022
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