Feature(s) impacted
Displaying and exporting data from a collection
Observed behavior
Certain SmartFields do not render any data on the list view, it’s just an empty column cell. When you click into the record, the data is there. Then clicking back to the list, only then does the data appears on that one row. It’s almost as if it’s lazy loading them on the list view and doesn’t actually fetch the data until you go to the individual record?
SmartField decleration on model:
public function artistTelephone(): SmartField
{
return $this->smartField(['type' => 'String'])->get(fn() =>
$this->artist != null ? $this->artist->telephone : 'No artist attached'
);
}
Expected behavior
The SmartField columns display in their entirity on the listing, without having to click into the record and back again.
Context
- Project name:
- Team name: …
- Environment name: … production
- Agent (forest package) name & version: 1.2.3
- Database type: … mysql
- Recent changes made on your end if any: …