various stuff
This commit is contained in:
@@ -9,6 +9,6 @@ export class TextWidgetComponent {
|
||||
text = "";
|
||||
|
||||
lines(): string[]{
|
||||
return this.text.split(/\r?\n/);
|
||||
return typeof this.text == 'string' ? this.text.split(/\r?\n/) : [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user