Skip to content

Commit

Permalink
the first commit is the right commit...
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten committed Jul 10, 2024
1 parent f299360 commit 390618f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/data-table/dialog-data-table-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,18 @@ export class DialogDataTableSettings extends LitElement {
}

columns.forEach((col) => {
if (col.key !== column && !newOrder.includes(col.key)) {
if (!newOrder.includes(col.key)) {
if (col.moveable === false) {
newOrder.unshift(col.key);
} else {
newOrder.splice(lastMoveable + 1, 0, col.key);
}

if (col.defaultHidden && !hidden.includes(col.key)) {
if (
col.key !== column &&
col.defaultHidden &&
!hidden.includes(col.key)
) {
hidden.push(col.key);
}
}
Expand Down

0 comments on commit 390618f

Please sign in to comment.