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(ui): stale doc status when publishing, reverting and unpublishing #10405

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

JarrodMFlesch
Copy link
Contributor

What?

The status indicator was not updating properly when users were clicking "unpublish" and "revert changes"

Why?

hasPublishedDoc, unpublishedVersionCount and mostRecentVersionIsAutosaved states were not being updated properly.

How?

This PR updates the variables when interacting with the status actions and sets mostRecentVersionIsAutosaved to false when the publish button is clicked.

Fixes #9531

@JarrodMFlesch JarrodMFlesch changed the title fix: doc status could become stale when reverting, unpublishing, publ… fix(ui): stale doc status when publishing, reverting and unpublishing Jan 6, 2025
@JarrodMFlesch JarrodMFlesch merged commit 17e7ee2 into main Jan 8, 2025
75 checks passed
@JarrodMFlesch JarrodMFlesch deleted the fix/stale-doc-status branch January 8, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Version collection publish/unpublish changes are not directly reflected in the UI
1 participant