diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2019-11-04 03:29:31 +0300 |
---|---|---|
committer | diosmosis <diosmosis@users.noreply.github.com> | 2019-11-04 03:29:31 +0300 |
commit | b048ae17d60372f6ab950197db9624a43ed62b72 (patch) | |
tree | e373aa3063244c1f8703d86ef0c7b8225b991d0e /plugins/CoreHome | |
parent | 47dfbefa6be6dbb935dc01eed5b5494da5e7f1dd (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.twig | 4 |
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 %} |