Skip to content

Commit

Permalink
Ensure expression and expressionType are persisted as needed to set t…
Browse files Browse the repository at this point in the history
…he accessor function

Signed-off-by: Gavin Reynolds <[email protected]>
  • Loading branch information
gsreynolds committed Jul 17, 2024
1 parent 321b8c5 commit 0459b8d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/config/column-generator.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,8 @@ export const incidentColumn = ({
header,
accessor,
accessorPath,
expression,
expressionType,
renderer = renderPlainTextCell,
minWidth,
sortType,
Expand Down Expand Up @@ -200,6 +202,8 @@ export const incidentColumn = ({
i18n: i18next.t(header),
accessor,
accessorPath,
expression,
expressionType,
Cell: wrappedRenderer,
minWidth,
columnType: columnType || 'incident',
Expand Down Expand Up @@ -839,6 +843,8 @@ export const customComputedColumnForSavedColumn = (savedColumn) => {
columnType: 'computed',
accessor,
accessorPath,
expression,
expressionType,
minWidth: width || 100,
});
return column;
Expand Down

0 comments on commit 0459b8d

Please sign in to comment.