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: apply move to head from a view that doesnt exist there #5184

Closed

Conversation

jobelenus
Copy link
Contributor

No description provided.

@@ -603,6 +604,21 @@ export function useChangeSetsStore() {
const route = useRouterStore().currentRoute;

if (route?.name) {
// am i on a view, and about to move to head
// where that view does not yet exist
if ("viewId" in route.params) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be generic, for switching between any change set? Or does it only matter when going to head

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this spot is only about moving to head after apply... i will add the changeset dropdown

@jobelenus jobelenus closed this Dec 20, 2024
@jobelenus jobelenus deleted the fix/apply-move-to-head-with-view-that-doesnt-exist branch December 20, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants