various stuff

This commit is contained in:
2023-02-27 19:59:43 +01:00
parent bd1b4fb655
commit 66da69a57a
6 changed files with 105 additions and 28 deletions

View File

@@ -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/) : [];
}
}