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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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