diff options
| author | bob <bcz@cs.brown.edu> | 2019-12-05 11:11:07 -0500 |
|---|---|---|
| committer | bob <bcz@cs.brown.edu> | 2019-12-05 11:11:07 -0500 |
| commit | 6ee91f4f5044465dfe33113dd84b7ffc8308bd2a (patch) | |
| tree | c0f22090f9f72231cb74500e1d78960891cc01a8 /src/client/views/collections/CollectionDockingView.tsx | |
| parent | 245fb46560603f95116580448ee8711fbf342979 (diff) | |
compile warning fixes.
Diffstat (limited to 'src/client/views/collections/CollectionDockingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionDockingView.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/collections/CollectionDockingView.tsx b/src/client/views/collections/CollectionDockingView.tsx index e35dc4c00..4374cde3c 100644 --- a/src/client/views/collections/CollectionDockingView.tsx +++ b/src/client/views/collections/CollectionDockingView.tsx @@ -529,7 +529,7 @@ interface DockedFrameProps { documentId: FieldId; dataDocumentId: FieldId; glContainer: any; - libraryPath: (FieldId[]) + libraryPath: (FieldId[]); //collectionDockingView: CollectionDockingView } @observer @@ -558,8 +558,8 @@ export class DockedFrameRenderer extends React.Component<DockedFrameProps> { async setupLibraryPath() { Promise.all(this.props.libraryPath.map(async docid => { - let d = await DocServer.GetRefField(docid); - return d instanceof Doc ? d : undefined + const d = await DocServer.GetRefField(docid); + return d instanceof Doc ? d : undefined; })).then(action((list: (Doc | undefined)[]) => this._libraryPath = list.filter(d => d).map(d => d as Doc))); } |
