outl1ne / nova-page-manager

Static page and region manager for Laravel Nova - designed for headless CMS's.
MIT License
178 stars 38 forks source link

fix error in page structure when no template found #146

Closed kaareloun closed 1 year ago

kaareloun commented 1 year ago

When there is a page in the pages table with a template that's not in config, building the structure will currently throw this error

Trying to access array offset on value of type null {"exception":"[object] (ErrorException(code: 0): Trying to access array offset on value of type null at vendor/outl1ne/nova-page-manager/src/Helpers/NPMHelpers.php:55)