Skip to content

Commit

Permalink
Filter out null values to prevent them being saved to the tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Dec 17, 2024
1 parent c05a5ca commit 5d7e991
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ private function updateData(array $data, Blueprint $blueprint)
->addValues($branch['values'] ?? [])
->process()
->values()
->only($branch['localizedFields'] ?? []);
->only($branch['localizedFields'] ?? [])
->filter();

if ($branch['new'] ?? false) {
$newId = BranchIdGenerator::generate();
Expand Down

0 comments on commit 5d7e991

Please sign in to comment.