Merged in release/2022-07-29 (pull request #553)

Resolve production board loading issue for MAXWR.

Approved-by: Patrick Fic
This commit is contained in:
Patrick Fic
2022-07-30 21:42:56 +00:00

View File

@@ -238,10 +238,8 @@ export function ProductionListTable({
sticky sticky
pagination={false} pagination={false}
size="small" size="small"
className="production-list-table" {...(Production_List_Status_Colors.treatment === "on" && {
onRow={ onRow: (record, index) => {
Production_List_Status_Colors.treatment === "on" &&
((record, index) => {
if (!bodyshop.md_ro_statuses.production_colors) return null; if (!bodyshop.md_ro_statuses.production_colors) return null;
const color = bodyshop.md_ro_statuses.production_colors.find( const color = bodyshop.md_ro_statuses.production_colors.find(
@@ -255,8 +253,8 @@ export function ProductionListTable({
backgroundColor: `rgb(${color.color.r},${color.color.g},${color.color.b},${color.color.a})`, backgroundColor: `rgb(${color.color.r},${color.color.g},${color.color.b},${color.color.a})`,
}, },
}; };
}) },
} })}
components={{ components={{
header: { header: {
cell: ResizeableTitle, cell: ResizeableTitle,