We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
false
1 parent d7624c7 commit 6a3aa2cCopy full SHA for 6a3aa2c
1 file changed
src/Fieldtypes/Group.php
@@ -7,6 +7,7 @@
7
use Statamic\Fields\Fieldtype;
8
use Statamic\Fields\Values;
9
use Statamic\GraphQL\Types\GroupType;
10
+use Statamic\Support\Arr;
11
use Statamic\Support\Str;
12
13
class Group extends Fieldtype
@@ -50,7 +51,9 @@ protected function configFieldItems(): array
50
51
52
public function process($data)
53
{
- return $this->fields()->addValues($data ?? [])->process()->values()->filter()->all();
54
+ $values = $this->fields()->addValues($data ?? [])->process()->values()->all();
55
+
56
+ return Arr::removeNullValues($values);
57
}
58
59
public function preProcess($data)
0 commit comments