Fix tests
continuous-integration/drone/push Build is failing Details

This commit is contained in:
philipp lang 2024-12-12 01:32:01 +01:00
parent a3ecfa756d
commit e1e8669beb
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ class UpdateParticipantSearchIndexAction
[ [
'filterableAttributes' => [...$form->getFields()->filterables()->getKeys(), 'parent-id'], 'filterableAttributes' => [...$form->getFields()->filterables()->getKeys(), 'parent-id'],
'searchableAttributes' => $form->getFields()->searchables()->getKeys(), 'searchableAttributes' => $form->getFields()->searchables()->getKeys(),
'sortableAttributes' => $form->getFields()->sortables()->getKeys(), 'sortableAttributes' => [...$form->getFields()->sortables()->getKeys(), 'id'],
'displayedAttributes' => [...$form->getFields()->filterables()->getKeys(), ...$form->getFields()->searchables()->getKeys(), 'id'], 'displayedAttributes' => [...$form->getFields()->filterables()->getKeys(), ...$form->getFields()->searchables()->getKeys(), 'id'],
'pagination' => [ 'pagination' => [
'maxTotalHits' => 1000000, 'maxTotalHits' => 1000000,

View File

@ -186,6 +186,6 @@ class Form extends Model implements HasMedia
public function defaultSorting(): Sorting public function defaultSorting(): Sorting
{ {
return Sorting::by(data_get($this->meta, 'active_columns.0')); return Sorting::by(data_get($this->meta, 'active_columns.0', 'id'));
} }
} }