2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

PUI bug fix (#7490)

- 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

View File

@ -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
}`
);
}
});