aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionSchemaView.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-04-09 02:45:06 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-04-09 02:45:06 -0400
commitcf86d1b7917f0317af550293344f784a341bd7b9 (patch)
tree6a0ede46a4127812ebfecb2c9a8386a1de9fde61 /src/client/views/collections/CollectionSchemaView.tsx
parent5e086920bf97297a02bcd38faea56454c2220279 (diff)
Added script field and added list of scripts to list field
Diffstat (limited to 'src/client/views/collections/CollectionSchemaView.tsx')
-rw-r--r--src/client/views/collections/CollectionSchemaView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionSchemaView.tsx b/src/client/views/collections/CollectionSchemaView.tsx
index 52933818f..587f60b3d 100644
--- a/src/client/views/collections/CollectionSchemaView.tsx
+++ b/src/client/views/collections/CollectionSchemaView.tsx
@@ -121,14 +121,14 @@ export class CollectionSchemaView extends CollectionSubView {
return field || "";
}}
SetValue={(value: string) => {
- let script = CompileScript(value, { addReturn: true, params: { this: "Document" } });
+ let script = CompileScript(value, { addReturn: true, params: { this: Document.name } });
if (!script.compiled) {
return false;
}
return applyToDoc(props.Document, script.run);
}}
OnFillDown={(value: string) => {
- let script = CompileScript(value, { addReturn: true, params: { this: "Document" } });
+ let script = CompileScript(value, { addReturn: true, params: { this: Document.name } });
if (!script.compiled) {
return;
}