Skip to content

Commit dac036f

Browse files
committed
Handle null message
If the message was not found on a notification, don't try to display anything. - Refs readthedocs/readthedocs.org#11542
1 parent c4d40d6 commit dac036f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

readthedocsext/theme/static/readthedocsext/theme/js/site.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/js/modules/notifications.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class NotificationElement extends LightDOMElement {
2727
};
2828

2929
render() {
30-
if (this.notification === undefined) {
30+
if (this.notification === undefined || this.notification.message === null) {
3131
return nothing;
3232
}
3333

0 commit comments

Comments
 (0)