Skip to content

[6.x] Rebuild the nav preferences tree after resetting customizations - #15656

Merged
jasonvarga merged 1 commit into
statamic:6.xfrom
wakqasahmed:fix/issue-15634-nav-reset-render
Oct 15, 2026
Merged

jasonvarga merged 1 commit into
statamic:6.xfrom
wakqasahmed:fix/issue-15634-nav-reset-render

Conversation

@wakqasahmed

Copy link
Copy Markdown
Contributor

After "Reset Nav Customizations", the request deleted the preference and reloaded the Inertia props, but the page only builds its tree from nav once on mount. So the tree kept showing the old customized items while the sidebar had already gone back to the defaults.

The reload now rebuilds the tree (and the stored initial nav used by "Discard Changes") from the fresh props once it finishes.

I added a vitest for the page that fails without the change.

I used an AI agent (Claude Code) to help with this change.

Fixes #15634

@jasonvarga
jasonvarga merged commit 160b1c4 into statamic:6.x Oct 15, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Navigation customization page does not immediately render the default nav items after reset

2 participants