Skip to content

Fix ObjectContentEditor navigation into objects nested in arrays - #237

Merged
einari merged 1 commit into
mainfrom
fix/object-content-editor-array-navigation
Sep 1, 2026
Merged

Fix ObjectContentEditor navigation into objects nested in arrays#237
einari merged 1 commit into
mainfrom
fix/object-content-editor-array-navigation

Conversation

@einari

@einari einari commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Summary

ObjectContentEditor could not navigate into an object nested inside an array. The breadcrumb advanced, but the table underneath silently fell back to the root object — so the navigational bar and the content on screen disagreed, with nothing to indicate the navigation had failed.

Fixed

  • ObjectContentEditor now shows the correct content when navigating into an object or array nested inside an array element, instead of silently falling back to the root object while the breadcrumb showed the deeper path
  • Navigating into a property of the second or later element of an array now shows that element's content rather than the first element's
  • ObjectNavigationalBar renders array index segments in bracket notation ([0]), so the breadcrumb shows which element was navigated through

Navigating into a property of an object that sits inside an array
resolved the value through its parent, and the parent was the array
itself. That lookup could not succeed, so the editor silently fell back
to rendering the root object while the navigational bar still showed the
deeper path — the breadcrumb and the table disagreed with no sign that
anything had gone wrong.

Navigation paths now address array elements by their index, so a path
resolves in a single traversal, a later element navigates to its own
content rather than the first one's, and the breadcrumb shows the index
it walked through. An unresolvable path returns to the root instead of
rendering the wrong data under it.
@einari einari added the patch label Sep 1, 2026
@einari
einari merged commit c84f151 into main Sep 1, 2026
41 of 42 checks passed
@einari
einari deleted the fix/object-content-editor-array-navigation branch September 1, 2026 09:27
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.

1 participant