From 0459b8d8410845ddaf13914b67bc54f659c4624e Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Wed, 17 Jul 2024 18:17:00 +0100 Subject: [PATCH] Ensure expression and expressionType are persisted as needed to set the accessor function Signed-off-by: Gavin Reynolds --- src/config/column-generator.jsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/config/column-generator.jsx b/src/config/column-generator.jsx index 54efd756..3d334328 100644 --- a/src/config/column-generator.jsx +++ b/src/config/column-generator.jsx @@ -152,6 +152,8 @@ export const incidentColumn = ({ header, accessor, accessorPath, + expression, + expressionType, renderer = renderPlainTextCell, minWidth, sortType, @@ -200,6 +202,8 @@ export const incidentColumn = ({ i18n: i18next.t(header), accessor, accessorPath, + expression, + expressionType, Cell: wrappedRenderer, minWidth, columnType: columnType || 'incident', @@ -839,6 +843,8 @@ export const customComputedColumnForSavedColumn = (savedColumn) => { columnType: 'computed', accessor, accessorPath, + expression, + expressionType, minWidth: width || 100, }); return column;