-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
When storage or folder is removed, Detail components should render without error #3168
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
Conversation
… render without error, fix BoostIO#2876
@hikerpig can you resolve the conflict please? |
@ZeroX-DG Done 🎉 |
@hikerpig thank you for resolving the conflict. It seem the bug is still there, I haven't have the time to look into it yet, if you can investigate this bug before me please do:) |
…t break the renderer
@ZeroX-DG I see many features are deployed after my initial commit. All this errors occur when no storage matches the storageKey, some of them are purposely thrown by this I just added some guards to avoid some scenarios, currently my editor won't break after storage is unlinked. But I see there are still some places called |
@hikerpig yes, I check out some places that call |
That will be great. This PR should be done by now. And I think instead of throwing an error in If that's ok, I will take a look in this and open a draft PR in one or two days. |
@hikerpig that's actually a good suggestion since I think it's caused by inconsistent between note list and storage list since the storage has been removed but the note list still try to access it. Can you investigate and fix it also? Thank you 👍 |
@ZeroX-DG I've fixed the errors in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool. LGTM 🎉
Description
Edit a note and unlink its folder or storage, current implementation of
browser/main/Detail/MarkdownNoteDetail.js
will throw exception due to invalid object property access, this PR add a safe guard to prevent it.Issue fixed
Type of changes
Checklist: