fix: allow access to the Update View button when a table column can be persisted (#1433)

Closes #1432
This commit is contained in:
Thaïs
2023-09-04 17:08:04 +02:00
committed by GitHub
parent 85156ce9ae
commit a1e6e46388
5 changed files with 47 additions and 8 deletions

View File

@ -138,10 +138,7 @@ export function TableOptionsDropdownContent({
const currentColumns = await snapshot.getPromise(
tableColumnsScopedState(tableScopeId),
);
set(
savedTableColumnsScopedState(viewToCreate.id),
currentColumns.map((column) => ({ ...column, id: v4() })),
);
set(savedTableColumnsScopedState(viewToCreate.id), currentColumns);
const selectedFilters = await snapshot.getPromise(
filtersScopedState(tableScopeId),