From ab76273acd2126d92455ff12c4ba80d8bb9473c5 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 24 Mar 2024 19:22:41 -0400 Subject: fixed crash on richtextfield to string when there's no data. fixed schema cells not to edit unless selected. --- src/fields/RichTextField.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fields') diff --git a/src/fields/RichTextField.ts b/src/fields/RichTextField.ts index 50cfab988..855b63d4b 100644 --- a/src/fields/RichTextField.ts +++ b/src/fields/RichTextField.ts @@ -31,7 +31,7 @@ export class RichTextField extends ObjectField { return '`' + this.Text + '`'; } [ToScriptString]() { - return `new RichTextField("${this.Data.replace(/"/g, '\\"')}", "${this.Text}")`; + return `new RichTextField("${this.Data?.replace(/"/g, '\\"')}", "${this.Text}")`; } [ToString]() { return this.Text; -- cgit v1.2.3-70-g09d2