From dbdd5fe147f2c3674bc2701c6df448b2420acf1f Mon Sep 17 00:00:00 2001 From: gpveronica Date: Thu, 9 Nov 2023 18:13:31 +0100 Subject: [PATCH] wc - Fixed defect, optional chaining in annotations Signed-off-by: gpveronica --- src/webcomponents/commons/grid-commons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webcomponents/commons/grid-commons.js b/src/webcomponents/commons/grid-commons.js index 704c9a0c3e..72acf5f344 100644 --- a/src/webcomponents/commons/grid-commons.js +++ b/src/webcomponents/commons/grid-commons.js @@ -305,7 +305,7 @@ export default class GridCommons { title: annotation.title || "Custom Annotation", field: "annotationSets", formatter: annotationSets => formatter(annotationSets, annotation.variableSetId, annotation.variables), - halign: gridConfig.header.horizontalAlign, + halign: gridConfig.header?.horizontalAlign || "center", visible: true, excludeFromSettings: true, // visible: this.gridCommons.isColumnVisible("annotations")