mirror of
https://github.com/turt2live/matrix-dimension.git
synced 2024-10-01 05:05:53 +00:00
Don't assume we have a title
This commit is contained in:
parent
9ff1443878
commit
64a841f450
@ -75,7 +75,7 @@ export class WidgetComponent {
|
||||
widget.dimension = {
|
||||
newUrl: this.unwrapUrl(widget.url),
|
||||
newName: widget.name,
|
||||
newTitle: widget.data.title,
|
||||
newTitle: widget.data ? widget.data.title : null,
|
||||
newData: JSON.parse(JSON.stringify(widget.data || "{}")),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user