Merge pull request #12710 from Budibase/fix/grid-columns-undefined-primary
Fix Grid component undefined primary array
This commit is contained in:
commit
0e04ec4144
|
@ -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