This PR replaces the current way to find a page (site.find()) with kirby.page() to prevent errors in the Panel in case the parent's status is changed to draft.
While this might not always make sense, it probably does in the Starterkit context where people play around and where they otherwise don't have a chance to get back to the original state because the resulting error prevents the user to change the status back to published.
This PR replaces the current way to find a page (
site.find()
) withkirby.page()
to prevent errors in the Panel in case the parent's status is changed to draft.While this might not always make sense, it probably does in the Starterkit context where people play around and where they otherwise don't have a chance to get back to the original state because the resulting error prevents the user to change the status back to published.