dont crash when value is undefined

This commit is contained in:
Bruno Windels 2020-10-20 16:51:51 +02:00
parent f7520bbfc0
commit 2b93d50396

View file

@ -29,7 +29,7 @@ export class TextMessageView extends TemplateView {
class BodyView extends StaticView {
render(t, value) {
const lines = value.split("\n");
const lines = (value || "").split("\n");
if (lines.length === 1) {
return lines[0];
}