aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
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);