diff --git a/Resources/CellTypes/Table.ts b/Resources/CellTypes/Table.ts
index ebd244eac809b883e893d8348f2ecd496e0668de..0f9ca4b65ad507b9ae6dbd515b13f3ba812da3a5 100644
--- a/Resources/CellTypes/Table.ts
+++ b/Resources/CellTypes/Table.ts
@@ -1,4 +1,4 @@
-///
+///
namespace ElementCellTypes {
interface ITableCellTypeParam {
ElTableName: string;
@@ -287,9 +287,9 @@ height="100%"
} else {
const values: any[] = data.map(x => x[column.property]);
const columnSetting = this.columns.find(x => x.label === column.label);
- if (self.isEmpty(columnSetting?.formatStr) && values.every(x => typeof x === "number" || self.isEmpty(x))) {
- const total = values.reduce((x, y) => self.isEmpty(y) ? x : x + y, 0);
- summary[index] = (isNaN(total) || total === 0) ? null : total;
+ if (values.every(x => !isNaN(Number(x)) || self.isEmpty(x))) {
+ const total = values.reduce((x, y) => self.isEmpty(y) ? x : x + Number(y), 0);
+ summary[index] = (isNaN(total) || total === 0) ? null : Forguncy.FormatHelper.format(columnSetting?.formatStr, total).text;
}
}
});