mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Close expander items if there are no children!
This commit is contained in:
parent
b4c540433f
commit
5652926a38
2 changed files with 4 additions and 4 deletions
|
|
@ -169,7 +169,7 @@ class _CategoryDisplayState extends State<CategoryDisplayWidget> {
|
|||
);
|
||||
},
|
||||
body: SubcategoryList(_subcategories),
|
||||
isExpanded: _subcategoriesExpanded,
|
||||
isExpanded: _subcategoriesExpanded && _subcategories.length > 0,
|
||||
),
|
||||
ExpansionPanel(
|
||||
headerBuilder: (BuildContext context, bool isExpanded) {
|
||||
|
|
@ -185,7 +185,7 @@ class _CategoryDisplayState extends State<CategoryDisplayWidget> {
|
|||
);
|
||||
},
|
||||
body: PartList(_parts),
|
||||
isExpanded: _partListExpanded,
|
||||
isExpanded: _partListExpanded && _parts.length > 0,
|
||||
)
|
||||
],
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue