From 1e1ffa6963b9213efded2ea4a9208dfd47d525fb Mon Sep 17 00:00:00 2001 From: yashgupta-hyland Date: Tue, 3 Dec 2024 15:28:32 +0530 Subject: [PATCH] WEBUI-1590:Allow option to configure integer display formatting --- elements/nuxeo-results/nuxeo-results.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/elements/nuxeo-results/nuxeo-results.js b/elements/nuxeo-results/nuxeo-results.js index b0a67da7f3..ab2cfc8311 100644 --- a/elements/nuxeo-results/nuxeo-results.js +++ b/elements/nuxeo-results/nuxeo-results.js @@ -457,9 +457,7 @@ Polymer({ _computeCountLabel() { // Fetch the property value from web-ui-properties.xml const isNumberFormattingEnabled = - Nuxeo && Nuxeo.UI && Nuxeo.UI.config && Nuxeo.UI.config.numberFormattingEnabled !== undefined - ? Nuxeo.UI.config.numberFormattingEnabled - : false; // Default to false if the property is not set + (Nuxeo && Nuxeo.UI && Nuxeo.UI.config && Nuxeo.UI.config.numberFormattingEnabled) || false; if (this.resultsCount < 0) { return this.i18n('results.heading.count.unknown'); }