Files
web/web_pivot_computed_measure/static/src/pivot/pivot_renderer.esm.js

15 lines
425 B
JavaScript

/* Copyright 2022 Tecnativa - Carlos Roca
* License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) */
import {PivotRenderer} from "@web/views/pivot/pivot_renderer";
import {patch} from "@web/core/utils/patch";
patch(PivotRenderer.prototype, {
getFormattedValue(cell) {
if (cell.value === Infinity) {
return "-";
}
return super.getFormattedValue(...arguments);
},
});