[BUG]: Console error in chapter editor page.
Describe the bug
console error is seen in chapter editor page.
URL of the page where the issue is observed.
https://www.oppiatestserver.org/story_editor/wvGQpYllJzVf#/chapter_editor/node_1
Steps To Reproduce
visit the link provided in the url section.
Expected Behavior
no console error should be there.
Screenshots/Videos
What device are you using?
Desktop
Operating System
Windows
What browsers are you seeing the problem on?
Chrome
Browser version
Version 121.0.6167.161 (Official Build) (64-bit)
Additional context
No response
Tips for developers
Before addressing the bug, please identify which PR caused the issue (you can follow the steps here). If you identify the PR, comment on the issue with a link to it. If not, mention the commit hash of the oldest commit you saw the bug on (and the month and year it was made in).
Also, if this is your first issue, please make sure to follow https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue and https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#setting-things-up before claiming it. Thanks!
Source: oppia/oppia