You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This crashed the manager in production for the ubyssey.ca deployment of Dispatch. After an article was saved with an empty heading, the article listing page crashed for any listing that included the "bad" article.
To immediately fix the problem, I manually updated the bad article to remove the empty heading block.
What behaviour were you expecting?
The Dispatch admin panel should not fail to load articles with empty headings.
What actually happened?
The Dispatch admin panel crashes when loading an article with an empty heading.
This error occurs primarily on the article listing page, given that the listing includes an article with an empty heading.
Steps to reproduce
What was your environment like?
Google Chrome Version 86.0.4240.111, macOS
Do you have any logs?
The error occurs on this un-minified line.
The above line maps to this function in the source code:
dispatch/dispatch/static/manager/src/js/vendor/dispatch-editor/helpers/convertJSON.js
Lines 118 to 126 in 6612ebe
The Chrome Debugger shows the value of the
block
parameter:block
is a single element taken directly from thecontent
field of an article API response. In this case, the original JSON value is:The text was updated successfully, but these errors were encountered: