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: element handling with getPageByElement in doc & edgeless #5771

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

AyushAgrawal-A2
Copy link
Contributor

@AyushAgrawal-A2 AyushAgrawal-A2 commented Dec 19, 2023

image

getBlockComponentByModal was removed in PR 5765 and was replaced by corresponding util fn. In this case getDocPageByElement as the element was originally type casted as DocPageBlockComponenet.

As AffineReference is used both in doc & edgeless. It is corrected to getPageByElement returning PageBlockComponent.

Copy link

vercel bot commented Dec 19, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blocksuite ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2023 6:18am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
blocksuite-docs ⬜️ Ignored (Inspect) Visit Preview Dec 19, 2023 6:18am

@doodlewind doodlewind changed the title fix: bug in pr #5765 fix: element handling with getPageByElement in doc & edgeless Dec 19, 2023
@doodlewind doodlewind merged commit a769bc0 into toeverything:master Dec 19, 2023
22 checks passed
@AyushAgrawal-A2 AyushAgrawal-A2 deleted the ayush/bug-pr-5765 branch December 19, 2023 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants