Minor fix to stop concating 'undefined' into the columns list and generating browser errors
This commit is contained in:
parent
a8b95fedfe
commit
72d16224de
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue