aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-03-27 15:31:13 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-03-27 15:31:13 -0400
commit692381503f2af93dba2a4f30495a17b7b4deed36 (patch)
treed7e5ff56ea03930b22cce540bb4497e669b4203f /src
parent985d34dc993748d4be06a61238f077be84dc9678 (diff)
from last
Diffstat (limited to 'src')
-rw-r--r--src/client/util/RichTextRules.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/util/RichTextRules.ts b/src/client/util/RichTextRules.ts
index c588a8d98..851619f63 100644
--- a/src/client/util/RichTextRules.ts
+++ b/src/client/util/RichTextRules.ts
@@ -99,7 +99,7 @@ export class RichTextRules {
return state.tr;
}
if (value !== "" && value !== undefined) {
- this.Document[DataSym][fieldKey] = value;
+ this.Document[DataSym][fieldKey] = value === "true" ? true : value === "false" ? false : value;
}
const fieldView = state.schema.nodes.dashField.create({ fieldKey, docid });
return state.tr.deleteRange(start, end).insert(start, fieldView);