diff --git a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/UpdateExistingNodes.php b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/UpdateExistingNodes.php index 59ca2ceb83..87f7431757 100644 --- a/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/UpdateExistingNodes.php +++ b/web/profiles/custom/yalesites_profile/modules/custom/ys_layouts/src/UpdateExistingNodes.php @@ -97,7 +97,8 @@ public function updateExistingPageMeta() { $section_storage = $stored_data->data['section_storage']; if ( - $section_storage->getSections()[1]->getLayoutSettings()['label'] == 'Title Section' + !empty($section_storage->getSections()[1]) + && $section_storage->getSections()[1]->getLayoutSettings()['label'] == 'Title Section' && $stored_data->data['section_storage']->getContext('entity')->getContextData()->getEntity()->bundle() == 'page') { $section_storage = $stored_data->data['section_storage'];