Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2019-11-04 03:29:31 +0300
committerdiosmosis <diosmosis@users.noreply.github.com>2019-11-04 03:29:31 +0300
commitb048ae17d60372f6ab950197db9624a43ed62b72 (patch)
treee373aa3063244c1f8703d86ef0c7b8225b991d0e /plugins/CoreHome
parent47dfbefa6be6dbb935dc01eed5b5494da5e7f1dd (diff)
Slight performance improvement when rendering data table visualisations (#15044)
* Slight performance improvement when rendering data table visualisations refs https://github.com/matomo-org/matomo/pull/15037 * apply review feedback
Diffstat (limited to 'plugins/CoreHome')
-rw-r--r--plugins/CoreHome/templates/_dataTable.twig4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CoreHome/templates/_dataTable.twig b/plugins/CoreHome/templates/_dataTable.twig
index 14d52f4d1b..e0b0327b5d 100644
--- a/plugins/CoreHome/templates/_dataTable.twig
+++ b/plugins/CoreHome/templates/_dataTable.twig
@@ -2,7 +2,7 @@
{% include visualizationTemplate %}
{%- else -%}
-{% set isDataTableEmpty = (dataTable is empty or dataTableHasNoData|default(false)) %}
+{% set isDataTableEmpty = (dataTable is not defined or dataTable is null or dataTableHasNoData|default(false)) %}
{% set showCardAsContentBlock = (properties.show_as_content_block and properties.show_title and not isWidget) %}
{% set showOnlyTitleWithoutCard = not showCardAsContentBlock and properties.title and properties.show_title %}
@@ -94,4 +94,4 @@
</div>
{% endif %}
-{%- endif %} \ No newline at end of file
+{%- endif %}