Skip to content

Latest commit

 

History

History
10 lines (10 loc) · 689 Bytes

2021-09-15-catch-unknown-cms-element-types-in-cms-editor.md

File metadata and controls

10 lines (10 loc) · 689 Bytes
Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 5 column 16
---
title: Add try-catch on loading cmsElements when cms element type is not registered
author: Joshua Behrens
issue: NEXT-17331
author_email: code@joshua-behrens.de
author_github: @JoshuaBehrens
---

Administration

  • Added additional try-catch in src/Administration/Resources/app/administration/src/module/sw-cms/service/cmsDataResolver.service.js to match the right catch in src/Administration/Resources/app/administration/src/module/sw-cms/page/sw-cms-detail/index.js
  • Added additional check and warning in src/Administration/Resources/app/administration/src/module/sw-cms/service/cmsDataResolver.service.js to expect cms elements registry might not have a slot type registered