Skip to content

Commit cdccf65

Browse files
authored
set properties so they can be used in column definitions while exporting (#2036)
1 parent c0d4357 commit cdccf65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Jobs/ExportJob.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public function __construct(
4343

4444
public function handle(): void
4545
{
46+
collect($this->componentTable->getPublicPropertiesDefinedInComponent())
47+
->intersectByKeys($this->properties)
48+
->each(fn ($value, $key) => $this->componentTable->{$key} = data_get($this->properties, $key));
49+
4650
$currentHiddenStates = collect($this->columns)
4751
->mapWithKeys(fn ($column) => [data_get($column, 'field') => data_get($column, 'hidden')]);
4852

0 commit comments

Comments
 (0)