aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-02-11 20:38:09 -0500
committeryipstanley <stanley_yip@brown.edu>2019-02-11 20:38:09 -0500
commit2eb147ab8f25e6dd90f47cf21499c7340642f0c9 (patch)
tree527f184d12ee4ab1e50efc715c992b7fced0d406 /src/client/Server.ts
parent7d30ae6c423290e502f72be566c4aba4fe62f9ff (diff)
asdkjfl
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r--src/client/Server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts
index db6bf992c..30fc57c93 100644
--- a/src/client/Server.ts
+++ b/src/client/Server.ts
@@ -31,9 +31,9 @@ export class Server {
public static GetDocumentField(doc: Document, key: Key) {
var hackTimeout: number = key == KeyStore.Data ? (this.times++ == 0 ? 5000 : 1000) : key == KeyStore.X ? 2500 : 500;
- return this.GetField(doc._proxies.get(key),
+ return this.GetField(doc._proxies.get(key.Id),
action((fieldfromserver: Field) => {
- doc._proxies.delete(key);
+ doc._proxies.delete(key.Id);
doc.fields.set(key, fieldfromserver);
})
, hackTimeout);