Skip to content

Commit

Permalink
Fix: panel Attributes field exclude section/group with empty attribut…
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong and actions-user authored Nov 19, 2024
1 parent 4635e1c commit 4edc13d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/admin/src/Support/Forms/Components/Attributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ protected function setUp(): void
'model' => $group,
'fields' => $attributes->groupBy('attribute_group_id')->get($group->id, []),
];
});
})
->filter(fn ($group) => count($group['fields']));

$groupComponents = [];

Expand Down

0 comments on commit 4edc13d

Please sign in to comment.