Injecting $record and using ->when
$record becomes an instance of TextColumn instead of Model when using the ->when condition.
Is this expected behaviour?
TextColumn::make('state')
->when(fn($record) => dd($record))
Is this expected behaviour?
TextColumn::make('state')
->when(fn($record) => dd($record))
