Skip to content

Commit 6e714fc

Browse files
committed
SVY-20936 Sidenav with custom Servoy menu issue
1 parent a909099 commit 6e714fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • components/projects/servoyextracomponents/src/sidenav

components/projects/servoyextracomponents/src/sidenav/sidenav.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ export class ServoyExtraSidenav extends ServoyBaseComponent<HTMLDivElement> {
510510
}
511511

512512
// change containedForm
513-
const itm = item.menuItems?.length ? item.menuItems[0] : item;
513+
const itm = item.menuItems?.length && item.menuItems[0].formName ? item.menuItems[0] : item;
514514
if (itm.formName && !isItemAlreadySelected) {
515515
const formToHide = this.containedForm();
516516
const menuIDToShow = itm.id;

0 commit comments

Comments
 (0)