diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-23 04:49:37 -0500 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-02-23 04:49:37 -0500 |
commit | 1f624d900738115452a4a676c3f93dd9bfc6a745 (patch) | |
tree | adb3e56d1b81ecfd3245571cf1f18d54916c5574 | |
parent | 5b4ad5f5a567357b78c8aeed88554af3376532d2 (diff) |
Fixed crash in debug viewer
-rw-r--r-- | src/debug/Viewer.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug/Viewer.tsx b/src/debug/Viewer.tsx index ddfe884ed..aff77fca3 100644 --- a/src/debug/Viewer.tsx +++ b/src/debug/Viewer.tsx @@ -7,7 +7,7 @@ import { Document } from '../fields/Document'; import { BasicField } from '../fields/BasicField'; import { ListField } from '../fields/ListField'; import { Key } from '../fields/Key'; -import { Field } from '../fields/Field'; +import { Opt, Field } from '../fields/Field'; import { Server } from '../client/Server'; configure({ @@ -116,7 +116,7 @@ class DebugViewer extends React.Component<{ fieldId: string }> { } update() { - Server.GetField(this.props.fieldId, (field => { + Server.GetField(this.props.fieldId, action((field: Opt<Field>) => { this.field = field; if (!field) { this.error = `Field with id ${this.props.fieldId} not found` |