diff options
| author | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-04-10 14:28:25 -0400 |
| commit | e0b3c759880639bf56f9b8b39ea2e38c5cbad8a6 (patch) | |
| tree | 5f88f565db34f65897e3cef1ba6d7388bdffa447 /src/client/views/collections/CollectionSubView.tsx | |
| parent | 9ea0f409cfc2a6c11bb1cf6e00015eb97900507b (diff) | |
fixed extra rendering for collections.
Diffstat (limited to 'src/client/views/collections/CollectionSubView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionSubView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionSubView.tsx b/src/client/views/collections/CollectionSubView.tsx index 588ff9483..ef0684955 100644 --- a/src/client/views/collections/CollectionSubView.tsx +++ b/src/client/views/collections/CollectionSubView.tsx @@ -15,6 +15,7 @@ import { ServerUtils } from "../../../server/ServerUtil"; import { Server } from "../../Server"; import { FieldViewProps } from "../nodes/FieldView"; import * as rp from 'request-promise'; +import { emptyFunction } from "../../../Utils"; export interface CollectionViewProps extends FieldViewProps { addDocument: (document: Document, allowDuplicates?: boolean) => boolean; @@ -213,7 +214,7 @@ export class CollectionSubView extends React.Component<SubCollectionViewProps> { } if (promises.length) { - Promise.all(promises).catch(() => { }).then(() => batch.end()); + Promise.all(promises).catch(emptyFunction).then(() => batch.end()); } else { batch.end(); } |
