Fix if user removes the menu category

This commit is contained in:
slawkens 2025-04-23 20:41:50 +02:00
parent 4e6aa0f262
commit dbea69f314

View File

@ -4,7 +4,9 @@
let colors = []; let colors = [];
{% for cat, menu in menus %} {% for cat, menu in menus %}
{% if config('menu_categories')[cat] is not empty %}
last_id[{{ cat }}] = {{ last_id[cat] }}; last_id[{{ cat }}] = {{ last_id[cat] }};
{% endif %}
{% endfor %} {% endfor %}
{% set menuDefaultLinksColor = config('menu_default_links_color') %} {% set menuDefaultLinksColor = config('menu_default_links_color') %}