diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-02-23 10:12:41 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-02-23 10:12:41 -0500 |
commit | da295c9cfa71d773c609df0e7ce3ff58aa661337 (patch) | |
tree | 002e70a2be45aa846b37561891ef8ea72fde90c0 /src/debug/Viewer.tsx | |
parent | 96327e5b393ba967a05b6c985a2641e3705c9e2c (diff) | |
parent | 6c451fa68db11c80f452ca7c85242ad98d867ab0 (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/debug/Viewer.tsx')
-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` |