Hello! I am having a heck of a time getting an interface table to display nested values. I suppose I am probably just not understanding something. In my data model, orders and order_details have a O2M relation (order_details contains the line items and is the junction between orders and products). When a line item is added, the quantity is displayed as that is entered manually when selecting a product. The nested values, Product → Title and Product → Price are just blank. They do update after saving, but it is more helpful to the user to see them while configuring the order. Why is this happening and what am I doing wrong? Any help is appreciated.
In case anyone comes looking at this in the future, this is a hydration issue since these fields can’t be shown until the entry is saved. Even the Directus ecommerce template does this. It is very confusing to the user to see “–” and not know what they have added.
What I ended up doing is installing an extension called Computed Interface. This allowed me to define live preview fields that will immediately update and show in the table when a product is added. Since these are not the “final” fields that store the line item info, I configured the table to display the permanent values once the order is saved (these fields are set in a flow).