ballerina-core 1.0.240 → 1.0.241

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "ballerina-core",
3
3
  "author": "Dr. Giuseppe Maggiore",
4
4
  "private": false,
5
- "version": "1.0.240",
5
+ "version": "1.0.241",
6
6
  "main": "main.ts",
7
7
  "scripts": {
8
8
  "prettier": "prettier --write ."
@@ -622,8 +622,10 @@ export const TableAbstractRenderer = <
622
622
 
623
623
  const hasMoreValues = props.context.value.hasMoreValues;
624
624
 
625
+ const validColumns = CellTemplates.keySeq().toArray();
626
+
625
627
  const validVisibleColumns = visibleColumns.value.columns.filter((_) =>
626
- CellTemplates.keySeq().toArray().includes(_),
628
+ validColumns.includes(_),
627
629
  );
628
630
 
629
631
  const embeddedTableData =
@@ -643,11 +645,13 @@ export const TableAbstractRenderer = <
643
645
  props.context.customFormState.loadingState != "loaded"
644
646
  ? OrderedMap<string, OrderedMap<string, any>>()
645
647
  : props.context.value.data.map((rowData, rowId) =>
646
- rowData.fields.map((_, column) =>
647
- EmbeddedCellTemplates.get(column)!(rowId)(
648
- rowData.fields.get(column)!,
649
- )(disabledColumnKeysSet.has(column)),
650
- ),
648
+ rowData.fields
649
+ .filter((_, column) => validColumns.includes(column))
650
+ .map((_, column) =>
651
+ EmbeddedCellTemplates.get(column)!(rowId)(
652
+ rowData.fields.get(column)!,
653
+ )(disabledColumnKeysSet.has(column)),
654
+ ),
651
655
  );
652
656
 
653
657
  if (props.context.customFormState.isFilteringInitialized == false) {