2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-28 11:36:44 +00:00

[UI] Test Result Table Tweak (#9075)

Control row expansion property for StockItemTestResultTable
This commit is contained in:
Oliver 2025-02-14 10:00:46 +11:00 committed by GitHub
parent 301347f1d0
commit caa0498aa3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -437,6 +437,7 @@ export default function StockItemTestResultTable({
return {
allowMultiple: true,
expandable: (record: any) => record.results && record.results.length > 1,
content: ({ record }: { record: any }) => {
if (!record || !record.results || record.results.length < 2) {
return null;