aboutsummaryrefslogtreecommitdiff
path: root/src/debug/Viewer.tsx
diff options
context:
space:
mode:
authorTyler Schicke <tyler_schicke@brown.edu>2019-02-25 01:22:40 -0500
committerTyler Schicke <tyler_schicke@brown.edu>2019-02-25 01:22:40 -0500
commit80a2f5540af2aae49685de09a2b94f216f10f0d7 (patch)
treeb9ed70d2d176e31e9d69312dd2587ed13165832f /src/debug/Viewer.tsx
parent62e06a2c9ce5054777a7a790e5b03b96d3cd6425 (diff)
parent41ff4813ddd9e6094d7d609c5960e1a614e00d7f (diff)
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web into authentication
Diffstat (limited to 'src/debug/Viewer.tsx')
-rw-r--r--src/debug/Viewer.tsx4
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`