This commit is contained in:
parent
43b4c57d01
commit
0af470f583
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,11 @@ export const getCalcValue = (column: IAVColumn) => {
|
|||
if (!column.calc || !column.calc.result) {
|
||||
return "";
|
||||
}
|
||||
const resultCalc = column.calc.result.number;
|
||||
let resultCalc: any = column.calc.result.number;
|
||||
if (column.calc.operator === "Earliest" || column.calc.operator === "Latest" ||
|
||||
(column.calc.operator === "Range" && column.type === "date")) {
|
||||
resultCalc = column.calc.result.date;
|
||||
}
|
||||
let value = "";
|
||||
switch (column.calc.operator) {
|
||||
case "Count all":
|
||||
|
|
Loading…
Add table
Reference in a new issue