2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00
This commit is contained in:
Oliver Walters
2021-02-11 00:11:47 +11:00
parent a62b038faf
commit 4339f70d64
2 changed files with 7 additions and 3 deletions

View File

@ -110,7 +110,9 @@ class _CategoryDisplayState extends RefreshableState<CategoryDisplayWidget> {
int pk = category?.pk ?? -1;
// Update the category
await category.reload(context);
if (category != null) {
await category.reload(context);
}
// Request a list of sub-categories under this one
await InvenTreePartCategory().list(context, filters: {"parent": "$pk"}).then((var cats) {
@ -317,7 +319,7 @@ class PartList extends StatelessWidget {
}
return ListTile(
title: Text("${part.name}"),
title: Text(part.fullname),
subtitle: Text("${part.description}"),
trailing: Text("${part.inStockString}"),
leading: InvenTreeAPI().getImage(