IO-1533 Resolve defaults check issue for production board.

This commit is contained in:
Patrick Fic
2021-11-18 09:19:34 -08:00
parent 45ab7543d5
commit 46abf01366
3 changed files with 16 additions and 12 deletions

View File

@@ -222,19 +222,21 @@ export function ProductionBoardKanbanComponent({
technician,
card,
bodyshop,
(associationSettings &&
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,
}
Object.keys(associationSettings.kanban_settings).length > 0
? associationSettings.kanban_settings
: {
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}

View File

@@ -0,0 +1 @@
alter table "public"."associations" alter column "kanban_settings" set default jsonb_build_object();

View File

@@ -0,0 +1 @@
alter table "public"."associations" alter column "kanban_settings" set default '{"ats": true, "clm_no": true, "compact": false, "ownr_nm": true, "sublets": true, "ins_co_nm": true, "production_note": true, "employeeassignments": true, "scheduled_completion": true}';