mirror of
https://github.com/inventree/inventree-app.git
synced 2026-10-08 08:07:09 +00:00
Tweaks (#707)
* Remove debug msg * Only request test templates for testable parts * Format
This commit is contained in:
1 parent
9083f19531
commit
0fc80b1be3
2 files changed
+9
-7
No files matched your search
@@ -190,11 +190,13 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
|
||||
}
|
||||
|
||||
// Request part test templates
|
||||
part.getTestTemplates().then((value) {
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
if (part.isTestable) {
|
||||
part.getTestTemplates().then((value) {
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Request the number of attachments
|
||||
InvenTreePartAttachment().countAttachments(part.pk).then((int value) {
|
||||
|
||||
Reference in new issue
Block a user