mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 05:47:22 -04:00
Update column properties when restoring persisted state
(cherry picked from commit 653db8290e0a7737348d911d322c4218c3b5b677)
This commit is contained in:
parent
5e24357c85
commit
a45e6918d7
1 changed files with 6 additions and 3 deletions
|
@ -32,10 +32,13 @@ function mergeColumns(path, initialState, persistedState, computedState) {
|
|||
// as long as they haven't been removed.
|
||||
|
||||
persistedColumns.forEach((persistedColumn) => {
|
||||
const columnIndex = initialColumns.findIndex((i) => i.name === persistedColumn.name);
|
||||
const column = initialColumns.find((i) => i.name === persistedColumn.name);
|
||||
|
||||
if (columnIndex >= 0) {
|
||||
columns.push({ ...persistedColumn });
|
||||
if (column) {
|
||||
columns.push({
|
||||
...column,
|
||||
isVisible: persistedColumn.isVisible
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue