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

Implement Fabric PR #7885 #1

Conversation

elbunuelo
Copy link

@elbunuelo elbunuelo commented Oct 13, 2022

TypeError
renderTopLayer(file://./nodemodules/@aha-app/whiteboard/nodemodules/fabric/dist/fabric.js)
Cannot read properties of null (reading 'save')

This is a fabric bug reported here fabricjs#7876
According to the discussion in the github issue, the error is caused by a race condition. The PR https://github.com/fabricjs/fabric.js/pull/7885/files reportedly fixes it.

Just for extra safety and as also discussed in the issue, I added an early exit to the renderTopLayer method when ctx is falsy.

Sentry error

@k1w1 k1w1 merged commit b1a04a9 into aha-app:master Dec 27, 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