Skip to content

Commit

Permalink
Add null check for search filter (#44349)
Browse files Browse the repository at this point in the history
Co-authored-by: Quy <[email protected]>
  • Loading branch information
Quy and Quy authored Oct 25, 2024
1 parent 3b358b8 commit 9f3bec7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function display($tpl = null): void
throw new GenericDataException(implode("\n", $errors), 500);
}

if (!\count($this->data) && $this->state->get('filter.search') === '') {
if (!\count($this->data) && ($this->state->get('filter.search') === null || $this->state->get('filter.search') === '')) {
$this->setLayout('emptystate');
}

Expand Down

0 comments on commit 9f3bec7

Please sign in to comment.