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 = [];
{% for cat, menu in menus %}
last_id[{{ cat }}] = {{ last_id[cat] }};
{% if config('menu_categories')[cat] is not empty %}
last_id[{{ cat }}] = {{ last_id[cat] }};
{% endif %}
{% endfor %}
{% set menuDefaultLinksColor = config('menu_default_links_color') %}