Fix resizable col on mini view not saving to state

This commit is contained in:
jeffvli
2021-11-02 17:51:55 -07:00
committed by Jeff
parent af03e7712e
commit 2dabfaf51a

View File

@@ -397,7 +397,9 @@ const ListViewTable = ({
settings.setSync(`miniListColumns[${resizedColumnIndex}].width`, newWidth);
}
const newCols = configState.lookAndFeel.listView[listType].columns.map((c: any) => {
const newCols = configState.lookAndFeel.listView[
miniView ? 'mini' : listType
].columns.map((c: any) => {
if (c.dataKey === column.dataKey) {
const { width, ...rest } = c;
return { width: newWidth, ...rest };
@@ -407,7 +409,7 @@ const ListViewTable = ({
});
dispatch(
setColumnList({
listType,
listType: miniView ? 'mini' : listType,
entries: newCols,
})
);