Skip to content

Commit

Permalink
fix(graphql/@searchBy): List of Logical operators can be empty.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Nov 20, 2022
1 parent 99cdbb9 commit b352b1a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/graphql/src/SearchBy/Types/Condition.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ protected function getTypeOperators(
string $type,
?bool $nullable,
): array {
return $manipulator->getTypeOperators($this->getScope(), Operators::Logical, false);
return $manipulator->hasTypeOperators($this->getScope(), Operators::Logical)
? $manipulator->getTypeOperators($this->getScope(), Operators::Logical, false)
: [];
}

/**
Expand Down

0 comments on commit b352b1a

Please sign in to comment.