diff options
author | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-10 14:45:41 -0400 |
---|---|---|
committer | Tyler Schicke <tyler_schicke@brown.edu> | 2019-04-10 14:45:41 -0400 |
commit | b03261853e191d4f70dd9d3fc70706f399533066 (patch) | |
tree | 184f83a377eb1c6e3f666de8ba081d96111a7d7d /src/client/Server.ts | |
parent | 54a89c59905b74ab71aa7366b3f1b7d653000547 (diff) | |
parent | e0b3c759880639bf56f9b8b39ea2e38c5cbad8a6 (diff) |
Merge branch 'master' of github-tsch-brown:browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r-- | src/client/Server.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts index b3cca0f4c..3bbbebe72 100644 --- a/src/client/Server.ts +++ b/src/client/Server.ts @@ -1,10 +1,10 @@ import { Key } from "../fields/Key"; -import { ObservableMap, action, reaction } from "mobx"; +import { ObservableMap, action, reaction, runInAction } from "mobx"; import { Field, FieldWaiting, FIELD_WAITING, Opt, FieldId } from "../fields/Field"; import { Document } from "../fields/Document"; import { SocketStub, FieldMap } from "./SocketStub"; import * as OpenSocket from 'socket.io-client'; -import { Utils } from "./../Utils"; +import { Utils, emptyFunction } from "./../Utils"; import { MessageStore, Types } from "./../server/Message"; export class Server { @@ -167,7 +167,7 @@ export class Server { if (f) { // console.log("Applying : " + field._id); f.UpdateFromServer(field.data); - f.init(() => { }); + f.init(emptyFunction); } else { // console.log("Not applying wa : " + field._id); } |