1
0
Fork 0
mirror of synced 2024-10-02 18:16:29 +13:00

Minor fix to stop concating 'undefined' into the columns list and generating browser errors

This commit is contained in:
Dean 2024-01-05 10:37:26 +00:00
parent a8b95fedfe
commit 72d16224de

View file

@ -114,7 +114,7 @@ const getColumns = ({
primary,
sortable,
updateSortable: newDraggableList => {
onChange(toGridFormat(newDraggableList.concat(primary)))
onChange(toGridFormat(newDraggableList.concat(primary || [])))
},
update: newEntry => {
const newDraggableList = draggableList.map(entry => {