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(dev-tools): only initSvg on rendered blocks #8215

Merged
merged 1 commit into from
Jun 13, 2024

Conversation

maribethb
Copy link
Contributor

The basics

The details

Resolves

Fixes an error in the legacy developer tools

Proposed Changes

  • only call initSvg if the block is rendered (note that legacy block factory is still using blockly v10.4 so this is still needed)

Reason for Changes

  • this was causing an error when serializing the block onto a headless workspace, which we do when exporting the block definition to convert to json

Test Coverage

the export blocks button works now :)

Documentation

Additional Information

@maribethb maribethb requested a review from a team as a code owner June 13, 2024 02:55
@maribethb maribethb requested a review from cpcallen June 13, 2024 02:55
@maribethb maribethb changed the title fix: only initSvg on rendered blocks fix(dev-tools): only initSvg on rendered blocks Jun 13, 2024
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Jun 13, 2024
@maribethb maribethb merged commit 24fe13f into google:develop Jun 13, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants