Skip to content

Commit

Permalink
Bug fix: select_info is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
robyww committed Dec 13, 2023
1 parent b79abf9 commit 96b4875
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/firefly/js/ui/tap/TableColumnsConstraints.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96b4875

Please sign in to comment.