aboutsummaryrefslogtreecommitdiff
path: root/src/debug/Viewer.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-05-21 11:44:51 -0400
committerTyler Schicke <tyler_schicke@brown.edu>2019-05-21 11:44:51 -0400
commit6eb5234a0def9e5714319e512e8dd927bd894b82 (patch)
tree5c9afd31fd1db2c20175ec3aa11c43ff6396f480 /src/debug/Viewer.tsx
parent1d0a66ca924da1b5c24e10461e3a7c26f550f348 (diff)
Fixed various scripting things
Diffstat (limited to 'src/debug/Viewer.tsx')
-rw-r--r--src/debug/Viewer.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/debug/Viewer.tsx b/src/debug/Viewer.tsx
index 4314e2132..b22300d0b 100644
--- a/src/debug/Viewer.tsx
+++ b/src/debug/Viewer.tsx
@@ -20,7 +20,7 @@ function applyToDoc(doc: any, key: string | number, scriptString: string): boole
}
const res = script.run({ this: doc });
if (!res.success) return false;
- if (!Field.IsField(res.result)) return false;
+ if (!Field.IsField(res.result, true)) return false;
doc[key] = res.result;
return true;
}