From 57fd46a86825fdb5b517d85415a5a8fda517c3df Mon Sep 17 00:00:00 2001 From: Carlos Roca Date: Wed, 27 Mar 2024 09:28:04 +0100 Subject: [PATCH] [FIX] web_pivot_computed_measure: Take care about -Infinity value too --- .../static/src/pivot/pivot_renderer.esm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_pivot_computed_measure/static/src/pivot/pivot_renderer.esm.js b/web_pivot_computed_measure/static/src/pivot/pivot_renderer.esm.js index d3a0e9c7b..ab5f9b0f0 100644 --- a/web_pivot_computed_measure/static/src/pivot/pivot_renderer.esm.js +++ b/web_pivot_computed_measure/static/src/pivot/pivot_renderer.esm.js @@ -7,7 +7,7 @@ import {patch} from "web.utils"; patch(PivotRenderer.prototype, "web_pivot_computed_measure.PivotRenderer", { getFormattedValue(cell) { - if (cell.value === Infinity) { + if (Math.abs(cell.value) === Infinity) { return "-"; } return this._super(...arguments);