aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-13 14:18:55 -0400
committerbob <bcz@cs.brown.edu>2019-09-13 14:18:55 -0400
commit233893698083cbcfcf39ddad8b57049aeb1ba842 (patch)
treee5ee00451ea12c8408638dcdb71acf4268f25c55 /src/client/views/nodes/CollectionFreeFormDocumentView.tsx
parentf508d5987e91e8297258905d8e8c9dfc405c50e9 (diff)
refactored how ruleProvider's work. overloaded custom template for creating metadata fields
Diffstat (limited to 'src/client/views/nodes/CollectionFreeFormDocumentView.tsx')
-rw-r--r--src/client/views/nodes/CollectionFreeFormDocumentView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
index 082e5c5e3..4872a7aa1 100644
--- a/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
+++ b/src/client/views/nodes/CollectionFreeFormDocumentView.tsx
@@ -74,7 +74,7 @@ export class CollectionFreeFormDocumentView extends DocComponent<CollectionFreeF
}
borderRounding = () => {
- let ruleProvider = this.props.Document.ruleProvider as Doc;
+ let ruleProvider = this.props.ruleProvider;
let ruleRounding = ruleProvider ? StrCast(Doc.GetProto(ruleProvider)["ruleRounding_" + NumCast(this.props.Document.heading)]) : undefined;
let br = StrCast(this.layoutDoc.layout instanceof Doc ? this.layoutDoc.layout.borderRounding : this.props.Document.borderRounding);
br = !br && ruleRounding ? ruleRounding : br;