From 5ea667b80ec9cba8c406658ba9df0f1aaa74ee89 Mon Sep 17 00:00:00 2001 From: consultoria-as Date: Thu, 28 May 2026 00:53:33 +0000 Subject: [PATCH] fix: filter null items in nav_main to prevent href error on disabled catalog --- pos/static/js/sidebar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pos/static/js/sidebar.js b/pos/static/js/sidebar.js index c679e28..81cbb18 100644 --- a/pos/static/js/sidebar.js +++ b/pos/static/js/sidebar.js @@ -37,8 +37,7 @@ window.renderSidebar = function(modulesOverride) { { name: _t('pos'), href: '/pos/sale', icon: '' }, moduleEnabled('catalog') ? { name: _t('catalog'), href: '/pos/catalog', icon: '' } : null, { name: _t('inventory'), href: '/pos/inventory', icon: '' }, - - ]}, + ].filter(Boolean)}, { label: _t('nav_management'), items: [ { name: _t('customers'), href: '/pos/customers', icon: '' }, { name: 'Cotizaciones', href: '/pos/quotations', icon: '' },