Skip to content

Conversation

randrei12
Copy link
Contributor

Using a manual importing (for example Blockly.serialization.workspaces.load) is causing the blocks to be imported twice (by our implementation and by importFromXml function). To solve this problem, we can simply verify if the workspace has blocks and only run if it doesn't.

Copy link
Owner

@nbudin nbudin left a comment

Choose a reason for hiding this comment

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

Thanks @randrei12, this seems super reasonable!

@nbudin nbudin merged commit 399cae5 into nbudin:main Mar 6, 2023
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