Skip to content

Commit

Permalink
Ensure value is loaded from saved columns and that expression/express…
Browse files Browse the repository at this point in the history
…ionType is persisted and loaded

Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jul 12, 2024
1 parent 3d898a9 commit adeef0d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/config/column-generator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,8 @@ export const incidentColumn = ({
minWidth,
sortType,
columnType,
expression,
expressionType,
}) => {
const wrappedRenderer = ({
cell, value: cellValue, row,
Expand Down Expand Up @@ -203,6 +205,8 @@ export const incidentColumn = ({
minWidth,
columnType: columnType || 'incident',
Filter: ColumnFilterComponent,
expression,
expressionType,
};

if (sortType) {
Expand Down
3 changes: 3 additions & 0 deletions src/redux/incident_table/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,14 @@ export function* saveIncidentTableImpl(action) {
tempCol.width = tempCol.minWidth;
}
return {
value: tempCol.value,
Header: tempCol.Header,
accessorPath: tempCol.accessorPath,
aggregator: tempCol.aggregator,
width: tempCol.width,
columnType: tempCol.columnType,
expressionType: tempCol.expressionType,
expression: tempCol.expression,
};
});

Expand Down

0 comments on commit adeef0d

Please sign in to comment.