mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 03:26: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
|
|
@ -176,7 +176,7 @@ class _LocationDisplayState extends State<LocationDisplayWidget> {
|
|||
);
|
||||
},
|
||||
body: SublocationList(_sublocations),
|
||||
isExpanded: _locationListExpanded,
|
||||
isExpanded: _locationListExpanded && _sublocations.length > 0,
|
||||
),
|
||||
ExpansionPanel(
|
||||
headerBuilder: (BuildContext context, bool isExpanded) {
|
||||
|
|
@ -192,7 +192,7 @@ class _LocationDisplayState extends State<LocationDisplayWidget> {
|
|||
);
|
||||
},
|
||||
body: StockList(_items),
|
||||
isExpanded: _stockListExpanded,
|
||||
isExpanded: _stockListExpanded && _items.length > 0,
|
||||
)
|
||||
]
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue