web: fix lint (#10524)

This commit is contained in:
Marc 'risson' Schmitt
2024-07-16 17:42:07 +02:00
committed by GitHub
parent 62c882cb0e
commit 409934196c
2 changed files with 4 additions and 4 deletions

View File

@ -151,7 +151,7 @@ export class AkAdminSidebar extends WithCapabilitiesConfig(AKElement) {
const renderOneSidebarItem: SidebarRenderer = ([path, label, attributes, children]) => {
const properties = Array.isArray(attributes)
? { ".activeWhen": attributes }
: attributes ?? {};
: (attributes ?? {});
if (path) {
properties["path"] = path;
}