From e8c14f1d0a301d6bb5ca2ce0e048fb4fb3f7728f Mon Sep 17 00:00:00 2001 From: bob Date: Thu, 2 May 2019 10:24:20 -0400 Subject: fixed dragging from treeview - MakeCopy shouldn't be async(?) --- src/new_fields/Doc.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts index d3d6ff93a..b37b52ea0 100644 --- a/src/new_fields/Doc.ts +++ b/src/new_fields/Doc.ts @@ -162,8 +162,8 @@ export namespace Doc { export function MakeCopy(doc: Doc, copyProto: boolean = false): Doc { const copy = new Doc; - Object.keys(doc).forEach(async key => { - const field = await doc[key]; + Object.keys(doc).forEach(key => { + const field = doc[key]; if (key === "proto" && copyProto) { if (field instanceof Doc) { copy[key] = Doc.MakeCopy(field); -- cgit v1.2.3-70-g09d2