Don't assume we have a title

This commit is contained in:
Travis Ralston 2017-12-13 22:56:59 -07:00
parent 9ff1443878
commit 64a841f450

View file

@ -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 || "{}")),
};
}