diff --git a/src/Component/Filter/StringFilter.php b/src/Component/Filter/StringFilter.php
index <HASH>..<HASH> 100644
--- a/src/Component/Filter/StringFilter.php
+++ b/src/Component/Filter/StringFilter.php
@@ -53,18 +53,17 @@ class StringFilter implements FilterInterface
         }
 
         if (1 === count($fields)) {
-            $expression = $this->getExpression($expressionBuilder, $type, $fields[0], $value);
-        } else {
-            $expressions = [];
+            $dataSource->restrict($this->getExpression($expressionBuilder, $type, current($fields), $value));
 
-            foreach ($fields as $field) {
-                $expressions[] = $this->getExpression($expressionBuilder, $type, $field, $value);
-            }
+            return;
+        }
 
-            $expression = $expressionBuilder->orX(...$expressions);
+        $expressions = [];
+        foreach ($fields as $field) {
+            $expressions[] = $this->getExpression($expressionBuilder, $type, $field, $value);
         }
 
-        $dataSource->restrict($expression);
+        $dataSource->restrict($expressionBuilder->orX(...$expressions));
     }
 
     /**
[Grid] Decrease nesting level in StringFilter