From 4d81f6a73ebd35a2be2f0a37cd527e029db57bc2 Mon Sep 17 00:00:00 2001 From: Jean-Pascal <jean-pascal.aubry@inrae.fr> Date: Tue, 23 Jan 2024 11:30:26 +0000 Subject: [PATCH] fix: convert pab table values in number when they are type of string Refs #652 --- src/app/components/pab-table/pab-table.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/pab-table/pab-table.component.ts b/src/app/components/pab-table/pab-table.component.ts index 32f6b8248..f65425f3e 100644 --- a/src/app/components/pab-table/pab-table.component.ts +++ b/src/app/components/pab-table/pab-table.component.ts @@ -1385,6 +1385,9 @@ export class PabTableComponent implements AfterViewInit, AfterViewChecked, OnIni } public getCellValue(cell) { + if(typeof cell.model.singleValue === "string") { + cell.model.singleValue = +cell.model.singleValue; + } return round(cell.model.singleValue, this.nDigits); } -- GitLab