Skip to content

Commit

Permalink
Don't show empty element categories
Browse files Browse the repository at this point in the history
  • Loading branch information
theboxer committed Nov 8, 2024
1 parent 1f9f404 commit 7df49bc
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ public function process()
];
}

$elements[] = $categoryElements;
if (!empty($categoryElements['elements'])) {
$elements[] = $categoryElements;
}
}

return $this->data(['elements' => $elements]);
Expand Down

0 comments on commit 7df49bc

Please sign in to comment.