forked from mystiq/hydrogen-web
dont crash when value is undefined
This commit is contained in:
parent
f7520bbfc0
commit
2b93d50396
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export class TextMessageView extends TemplateView {
|
||||||
|
|
||||||
class BodyView extends StaticView {
|
class BodyView extends StaticView {
|
||||||
render(t, value) {
|
render(t, value) {
|
||||||
const lines = value.split("\n");
|
const lines = (value || "").split("\n");
|
||||||
if (lines.length === 1) {
|
if (lines.length === 1) {
|
||||||
return lines[0];
|
return lines[0];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue