diff options
author | bobzel <zzzman@gmail.com> | 2020-12-07 14:03:46 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-12-07 14:03:46 -0500 |
commit | ff791402919478bf153179a6629752f2066edc29 (patch) | |
tree | 31a97e7c2b0f8cdbc719aa871d80785147bcdeb9 /src/fields/Doc.ts | |
parent | 74b5ef7cd5f91d4483a407585bca0f6b93883208 (diff) |
fixed lists to allow multiple null-value entries & be able to edit in KeyValuePane. cleaned up a lot of stuff with animation frames and got working again. fixed previews of links to text selections to preview properly.
Diffstat (limited to 'src/fields/Doc.ts')
-rw-r--r-- | src/fields/Doc.ts | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index ffb1bbf83..fdea47c84 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -36,6 +36,7 @@ export namespace Field { export function toScriptString(field: Field): string { if (typeof field === "string") return `"${field}"`; if (typeof field === "number" || typeof field === "boolean") return String(field); + if (field === undefined || field === null) return "null"; return field[ToScriptString](); } export function toString(field: Field): string { |