From 4354f7f9d7a62a4193ac8f84380722db75d806d8 Mon Sep 17 00:00:00 2001 From: Tyler Schicke Date: Mon, 18 Mar 2019 06:57:25 -0400 Subject: Fixed image upload to mostly work with authentication --- src/client/views/Main.tsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/client/views') diff --git a/src/client/views/Main.tsx b/src/client/views/Main.tsx index d0f84f779..26a07fdfe 100644 --- a/src/client/views/Main.tsx +++ b/src/client/views/Main.tsx @@ -176,13 +176,15 @@ export class Main extends React.Component { this.mainContainer.GetTAsync(KeyStore.ActiveFrame, Document, field => this.mainfreeform = field); this.mainContainer.GetTAsync(KeyStore.OptionalRightCollection, Document, col => { // if there is a pending doc, and it has new data, show it (syip: we use a timeout to prevent collection docking view from being uninitialized) - if (col) { - col.GetTAsync>(KeyStore.Data, ListField, (f: Opt>) => { - if (f && f.Data.length > 0) { - CollectionDockingView.Instance.AddRightSplit(col); - } - }) - } + setTimeout(() => { + if (col) { + col.GetTAsync>(KeyStore.Data, ListField, (f: Opt>) => { + if (f && f.Data.length > 0) { + CollectionDockingView.Instance.AddRightSplit(col); + } + }) + } + }, 100); }); } -- cgit v1.2.3-70-g09d2