diff options
| author | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-26 12:48:40 -0400 |
|---|---|---|
| committer | Sam Wilkins <samuel_wilkins@brown.edu> | 2019-06-26 12:48:40 -0400 |
| commit | 444f970365a4280376e929e78c16090f6ae92739 (patch) | |
| tree | 8b8a1412e9cad8f508234dcf71043a7cedbc2fc4 /src/debug/Repl.tsx | |
| parent | 64ffa0accfc872c81035079527952aabaf56c6f6 (diff) | |
| parent | 219cabb3fe42ab199550efc3423b7aaed4e1ee93 (diff) | |
merged with master
Diffstat (limited to 'src/debug/Repl.tsx')
| -rw-r--r-- | src/debug/Repl.tsx | 5 |
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> ); }); |
