From c2044ffd5fc93420d0b8ec082e399fe827a38447 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Fri, 29 Nov 2024 12:24:38 +0000 Subject: [PATCH] Filter out null values when saving mappings (#48) --- 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();