Skip to content

Commit

Permalink
Fix for wrongly rendered menu template
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisprins93 committed Aug 8, 2023
1 parent 67e983a commit 0092f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public static function ViewableMenustructureMenu(string $slug, string $template)
$menu = self::MenustructureMenu($slug);

if ($menu instanceof Menu) {
return $menu->forTemplate($template);
return $menu->renderWith($template);
}

return $menu;
Expand Down

0 comments on commit 0092f11

Please sign in to comment.