* Remove debug msg

* Only request test templates for testable parts

* Format
This commit is contained in:
Oliver 2025-11-03 21:39:39 +11:00 committed by GitHub
parent 9083f19531
commit 0fc80b1be3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 7 deletions

View file

@ -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) {