aboutsummaryrefslogtreecommitdiff
path: root/src/debug/Repl.tsx
diff options
context:
space:
mode:
authormadelinegr <monika_hedman@brown.edu>2019-06-11 12:54:05 -0400
committermadelinegr <monika_hedman@brown.edu>2019-06-11 12:54:05 -0400
commitf4a545e6e4b21ca28ce861325be69d920578d6c0 (patch)
tree6adbd99ea734c3bfff9a86f7c4f0904831579dc7 /src/debug/Repl.tsx
parent0f9ae31c6a6f384b2b8df9223a820c2d53571d3a (diff)
parent06d5bb5c65da6f4a115ebf8118989115420bccef (diff)
pulled from master
Diffstat (limited to 'src/debug/Repl.tsx')
-rw-r--r--src/debug/Repl.tsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/debug/Repl.tsx b/src/debug/Repl.tsx
index c2db3bdcb..91b711c79 100644
--- a/src/debug/Repl.tsx
+++ b/src/debug/Repl.tsx
@@ -4,6 +4,8 @@ import { observer } from 'mobx-react';
import { observable, computed } from 'mobx';
import { CompileScript } from '../client/util/Scripting';
import { makeInterface } from '../new_fields/Schema';
+import { ObjectField } from '../new_fields/ObjectField';
+import { RefField } from '../new_fields/RefField';
@observer
class Repl extends React.Component {
@@ -42,7 +44,8 @@ class Repl extends React.Component {
return (
<div style={{ marginTop: "5px" }}>
<p>{command.command}</p>
- <pre>{JSON.stringify(command.result, null, 2)}</pre>
+ {/* <pre>{JSON.stringify(command.result, null, 2)}</pre> */}
+ <pre>{command.result instanceof RefField || command.result instanceof ObjectField ? "object" : String(command.result)}</pre>
</div>
);
});