Skip to content

fix: handle nil values when rendering AshTypedStructures - #423

Merged
zachdaniel merged 1 commit into
ash-project:mainfrom
BordalloG:handle-nil-ash-typed-structures
Aug 14, 2026
Merged

fix: handle nil values when rendering AshTypedStructures#423
zachdaniel merged 1 commit into
ash-project:mainfrom
BordalloG:handle-nil-ash-typed-structures

Conversation

@BordalloG

@BordalloG BordalloG commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Contributor checklist

Calling Map.from_struct(value) on nil crashes the page. And I did not consider that the Ash Typed Structure could be nil when I submitted my previous changes (#420).

This PR add a case statement that will prevent the app from crashing on nil values. The app already handle nil value by showing rendering null.

Screen.Recording.2026-08-14.at.10.06.50.AM.mov

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

@zachdaniel
zachdaniel merged commit 6ff6fc6 into ash-project:main Aug 14, 2026
23 of 26 checks passed
@zachdaniel

Copy link
Copy Markdown
Contributor

🚀 Thank you for your contribution! 🚀

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.

2 participants