Fixed remove from production button not closing drawer. BOD-315

This commit is contained in:
Patrick Fic
2020-09-09 12:16:03 -07:00
parent eff6f361ee
commit c4c646ba35
5 changed files with 20 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ export function PartsStatusPie({ bodyshop, joblines_status }) {
const Calculatedata = useCallback(
(data) => {
if (data.length > 0) {
if (data && data.length > 0) {
const statusMapping = {};
data.map((i) => {
if (!statusMapping[i.status])