mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-02-08 10:38:18 +01:00
dont crash when value is undefined
This commit is contained in:
parent
f7520bbfc0
commit
2b93d50396
@ -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];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user