ryangjchandler / filament-navigation

Build structured navigation menus in Filament.
MIT License
168 stars 64 forks source link

Check if navigation item has children #67

Closed howdu closed 1 year ago

howdu commented 1 year ago

If children don't exist allow page to load without error:

Undefined array key "children"

ryangjchandler commented 1 year ago

@howdu I can't seem to replicate this issue on main.

howdu commented 1 year ago

Yes that works fine. The simple check is to allow for if the items created elsewhere without empty children:[]