-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
None
-
-
Empty show more show less
-
DevX 15
-
3
With test data from MGNLFE-272, Angular code sometime does not show green bars with pages have areas only.
On version 1.2.2 of angular editor: error messages in the browser console
ERROR Error: Uncaught (in promise): TypeError: Cannot read properties of undefined (reading '@path') TypeError: Cannot read properties of undefined (reading '@path') Â Â at magnolia-angular-editor.js:243:109 Â Â at _ZoneDelegate.invoke (zone.js:409:30)
in editable-area.component.ts
updateComment(content: object): void { this.editorContext.inEditorAsync().then((inEditor) => { if (inEditor) { if (this.editorContext.templateAnnotations && this.editorContext.templateAnnotations[content['@path']]) {
On the latest code of angular editor: nothing is shown https://git.magnolia-cms.com/projects/MODULES/repos/frontend-helpers/pull-requests/150/overview?commentId=99169
Â
The issue also happens with a new page from Angular: Standard page.
Â
The steps to reproduce:
- Create a new page from Angular: Standard page
- Edit the page few times (normally, second or third time) => no green barsÂ
Â
We also can replace by the code bellow to reproduce the issue always
const contentObservable = this.http       .get(`${ENVIRONMENT.restUrlBase}${spaRootNodePath}${magnoliaContext.search}`).subscribe(content=>{         console.log('content');         console.log(content);        this.content = content;        const templateAnnotationObservable = this.http            .get(`${ENVIRONMENT.templateAnnotationsBase}${spaRootNodePath}`).subscribe(templateAnnotations=>{              console.log('templateAnnotation');              console.log(templateAnnotations);           this.editorContext.setTemplateAnnotations(templateAnnotations);          });       });
- is depended upon by
-
MGNLFE-233 Release and Publish Frontend Helpers 1.3.0
- Closed
- is related to
-
MGNLFE-272 vue-editor 1.2.3-beta don't render green bars (editing bars)
- Closed
-
MGNLFE-301 Remove templateAnnotationsUpdated
- Accepted
-
MGNLFE-300 Remove redundant variable "declaration"
- Closed
1.
|
Implement | Completed | Phong Le Quoc | |
2.
|
Review | Closed | Dai Ha | |
3.
|
PiQA | Closed | Rishab Dhar | |
4.
|
QA | Completed | Unassigned |