chore: update eslint and prettier configuration

This commit is contained in:
2026-06-17 16:23:28 +05:30
parent b54242cf7e
commit 4c2241ff72
140 changed files with 2270 additions and 1287 deletions

View File

@@ -96,7 +96,9 @@ export function filterMenuItems(
.map((item): MenuItem | null => {
if (!hasPermission(item.permission)) return null;
const children = item.children ? filterMenuItems(item.children, hasPermission) : undefined;
const children = item.children
? filterMenuItems(item.children, hasPermission)
: undefined;
if (item.children && children?.length === 0 && !item.path) return null;