Fix unhiding default hidden column (#21358)

the first commit is the right commit...
This commit is contained in:
Bram Kragten 2024-07-10 18:25:57 +02:00 committed by GitHub
parent f2993602f9
commit 5ead5ed058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}
}