diff options
| author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 15:27:17 -0400 |
|---|---|---|
| committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 15:27:17 -0400 |
| commit | 985d34dc993748d4be06a61238f077be84dc9678 (patch) | |
| tree | 38a092ff22580181fb6beaa3e15a281b06849508 /src/client/util/RichTextRules.ts | |
| parent | dd56d08f4797b5d94cdb115de3fc5a483af0de59 (diff) | |
added metadata checkboxes in rich text notes.
Diffstat (limited to 'src/client/util/RichTextRules.ts')
| -rw-r--r-- | src/client/util/RichTextRules.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts index e5b20a79b..c588a8d98 100644 --- a/src/client/util/RichTextRules.ts +++ b/src/client/util/RichTextRules.ts @@ -98,7 +98,7 @@ export class RichTextRules { } return state.tr; } - if (value !== "") { + if (value !== "" && value !== undefined) { this.Document[DataSym][fieldKey] = value; } const fieldView = state.schema.nodes.dashField.create({ fieldKey, docid }); |
