chore: update eslint and prettier configuration
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user