IO-1533 Added check for null settings on kanban.

This commit is contained in:
Patrick Fic
2021-11-17 22:16:43 -08:00
parent 49bf461c36
commit fed16efd10

View File

@@ -222,7 +222,19 @@ export function ProductionBoardKanbanComponent({
technician,
card,
bodyshop,
associationSettings && associationSettings.kanban_settings
(associationSettings &&
associationSettings.kanban_settings &&
Object.keys(associationSettings.kanban_settings).length > 0) || {
ats: true,
clm_no: true,
compact: false,
ownr_nm: true,
sublets: true,
ins_co_nm: true,
production_note: true,
employeeassignments: true,
scheduled_completion: true,
}
)
}
onCardDragEnd={handleDragEnd}