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