2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-05-10 01:08:49 +00:00

PUI bug fix ()

- Handle null data case
This commit is contained in:
Oliver 2024-06-22 12:31:34 +10:00 committed by GitHub
parent 831b5f4f3f
commit 5f512fa3ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -362,9 +362,13 @@ export default function PartDetail() {
});
}
});
return `${formatPriceRange(data.overall_min, data.overall_max)}${
part.units && ' / ' + part.units
}`;
return (
data &&
`${formatPriceRange(data.overall_min, data.overall_max)}${
part.units && ' / ' + part.units
}`
);
}
});