From 9d8d9e7cd1b96a0d7b168aa78fa66b070b8d2e40 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 29 Nov 2024 12:20:55 +0000 Subject: [PATCH] Filter out null values when saving mappings --- src/Fieldtypes/ImportMappingsFieldtype.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fieldtypes/ImportMappingsFieldtype.php b/src/Fieldtypes/ImportMappingsFieldtype.php index 4fdf5b9..15fc759 100644 --- a/src/Fieldtypes/ImportMappingsFieldtype.php +++ b/src/Fieldtypes/ImportMappingsFieldtype.php @@ -53,7 +53,7 @@ public function process($data): array return null; } - return $fields->addValues($values)->process()->values()->all(); + return $fields->addValues($values)->process()->values()->filter()->all(); }) ->filter() ->all();