-
Notifications
You must be signed in to change notification settings - Fork 179
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
Delete a non-draft story from storage after saving #12475
Conversation
Plugin builds for b5a219e are ready 🛎️!
|
Size Change: +14 B (0%) Total Size: 2.72 MB ℹ️ View Unchanged
|
Plugin builds for a579d5e are ready 🛎️!%0A- Download development build%0A- Download production build |
if (wasNewTracker.current) { | ||
sessionStore.deleteItemByKey(getSessionStorageKey(null, true)); |
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.
Note the prettiest code ever, but if it works... 🤷
Confirmed that the
in all cases, so soon as the saved changes are restored or saved, the temporary session storage key is deleted. Obviously, if the story has unsaved changes and no one opens the story, the session storage key remains in the browser context. |
Context
Summary
Fixes a bug where a story is not deleted from the session storage when saving the story.
Relevant Technical Choices
To-do
User-facing changes
Testing Instructions
This PR can be tested by following these steps:
Reviews
Does this PR have a security-related impact?
Does this PR change what data or activity we track or use?
Does this PR have a legal-related impact?
Checklist
Type: XYZ
label to the PRFixes #12444