Fix tests
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
a3ecfa756d
commit
e1e8669beb
|
@ -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,
|
||||||
|
|
|
@ -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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue