Skip to content

Commit

Permalink
Stricter type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Feb 16, 2024
1 parent 2f959ac commit f0d6b3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/templates/_layouts/elementindex.twig
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{% set sources = craft.app.elementSources.getSources(elementType, 'index', true) %}

{% set showSiteMenu = (craft.app.getIsMultiSite() ? (showSiteMenu ?? 'auto') : false) %}
{% if showSiteMenu == 'auto' %}
{% if showSiteMenu is same as ('auto') %}
{% set showSiteMenu = elementInstance.isLocalized() %}
{% endif %}

Expand Down

0 comments on commit f0d6b3b

Please sign in to comment.