Merge pull request #12710 from Budibase/fix/grid-columns-undefined-primary

Fix Grid component undefined primary array
This commit is contained in:
deanhannigan 2024-01-05 10:59:00 +00:00 committed by GitHub
commit 0e04ec4144
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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 => {