diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-02-25 01:31:27 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-02-25 01:31:27 -0500 |
commit | 1a32bdca177faf5a3d99bcb45aaf596ba8c706a8 (patch) | |
tree | 1f7531be1ae4032cbb5de0e54a9ae48fda9657cc /src/debug/Viewer.tsx | |
parent | b418a6ed64e50700e2935963f01e392cbd81099d (diff) | |
parent | db7aa80be56e2d91acf224013b24ab73385f836c (diff) |
Merge branch 'authentication' of https://github.com/browngraphicslab/Dash-Web into authentication
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` |