From 96b4875ef91965e22748ffca566c12a934096fdd Mon Sep 17 00:00:00 2001 From: roby Date: Wed, 13 Dec 2023 11:43:51 -0700 Subject: [PATCH] Bug fix: select_info is undefined --- src/firefly/js/ui/tap/TableColumnsConstraints.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/firefly/js/ui/tap/TableColumnsConstraints.jsx b/src/firefly/js/ui/tap/TableColumnsConstraints.jsx index d3bb4c1078..1dac5951ee 100644 --- a/src/firefly/js/ui/tap/TableColumnsConstraints.jsx +++ b/src/firefly/js/ui/tap/TableColumnsConstraints.jsx @@ -190,7 +190,9 @@ function reorganizeTableModel(tableModel, columnNames, reset) { c.prefWidth= 11; } }); - const selectInfo= (usingPrincipal||SELECT_ALL_COLUMNS_WHEN_NO_PRINCIPAL) ? selectInfoCls.data : undefined; + const selectInfo= (usingPrincipal||SELECT_ALL_COLUMNS_WHEN_NO_PRINCIPAL) ? + selectInfoCls.data : + SelectInfo.newInstance({rowCount: data.length}).data; modifiedTableModel = {tbl_id, totalRows: data.length, tableData: {columns, data}, selectInfo, request: {tbl_id}}; return modifiedTableModel;