From 1c1b00e5e164ae82275e03b488a5a81eb1721234 Mon Sep 17 00:00:00 2001 From: bobzel Date: Sun, 21 Feb 2021 19:36:31 -0500 Subject: fixed warning --- src/client/views/collections/CollectionSubView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 2ba45df2c..a1021b6a1 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -256,7 +256,7 @@ export function CollectionSubView(schemaCtor: (doc: Doc) => T, moreProps?: const addDocument = (doc: Doc | Doc[]) => { const docs = doc instanceof Doc ? [doc] : doc; docs.forEach(doc => Doc.AddDocToList(Cast(Doc.UserDoc().myFileOrphans, Doc, null), "data", doc)); - this.addDocument(doc); + return this.addDocument(doc); } if (html) { -- cgit v1.2.3-70-g09d2