tfwright / live_admin

Low-config admin UI for Phoenix apps, built on LiveView
MIT License
248 stars 22 forks source link

LiveAdmin errors with lists of maps #105

Closed tmaszk closed 4 months ago

tmaszk commented 4 months ago

Describe the bug LiveAdmin errors when record has field of type {:array, :map}. For example, it is the type that Oban uses to store errors on %Oban.Job{}

To Reproduce Steps to reproduce the behavior:

  1. Add Oban jobs table to LiveAdmin
  2. When an Oban Job has an error, the errors column contains one or more error maps
  3. Click on the Oban.Jobs table in LiveAdmin
  4. See error

Expected behavior Show the values in the list of maps

Screenshots Screenshot 2024-03-10 at 2 10 53 PM

Environment:

Note This is similar to the issue I reported earlier with arrays of strings.

tfwright commented 4 months ago

Fixed in https://github.com/tfwright/live_admin/commit/6d6490e54311212488bc857223dc5a85f59c5f94