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,
|
primary,
|
||||||
sortable,
|
sortable,
|
||||||
updateSortable: newDraggableList => {
|
updateSortable: newDraggableList => {
|
||||||
onChange(toGridFormat(newDraggableList.concat(primary)))
|
onChange(toGridFormat(newDraggableList.concat(primary || [])))
|
||||||
},
|
},
|
||||||
update: newEntry => {
|
update: newEntry => {
|
||||||
const newDraggableList = draggableList.map(entry => {
|
const newDraggableList = draggableList.map(entry => {
|
||||||
|
|
Loading…
Reference in New Issue