Open Sepremo opened 2 weeks ago
Assigning @Lawful2002 for the first pass review of this PR. Thanks!
@seanlip PTAL
Hi @Sepremo, just wanted to check, if there's any update on this ?
Hi @Ash-2k3, sorry, I've been a bit busy but I am going to see if it's easy to fix the other similar issues. In the meantime I'll add the changes to fix navigateToChapterEditor
.
Overview
headerText
andsubheaderText
values from the Chapter Editor component (story-node-editor.component.ts
) to the component responsible for the navigation of the Story Editor (instory-editor-navigation.service.ts
), like it is done for the updates of SubTopic values in the component for routing of the Topic Editor (intopic-editor-routing.service.ts
)headerText
(along withsubheaderText
) property undergoes updates after Angular's change detection cycle has concluded. This behavior stems from the component managing the new Chapter Editor Tab. The issue arises because it alters a bound value (as bound in thetop-navigation-bar.component.html
) within a new Tab (Chapter Editor), albeit within the same page (Story Editor). This error came from the code migration in #17968.Essential Checklist
Please follow the instructions for making a code change.
Proof that changes are correct
https://github.com/oppia/oppia/assets/12527288/2cba4632-b20e-485a-b7dd-5db2740edf4e