diff --git a/frontend/scenes/Document/components/DocumentMove/DocumentMove.js b/frontend/scenes/Document/components/DocumentMove/DocumentMove.js index 78ffcdbae..f2978e5c3 100644 --- a/frontend/scenes/Document/components/DocumentMove/DocumentMove.js +++ b/frontend/scenes/Document/components/DocumentMove/DocumentMove.js @@ -58,7 +58,7 @@ type Props = { let results = []; if (collections.isLoaded) { if (this.searchTerm) { - // Search by + // Search by the keyword results = this.searchIndex.search(this.searchTerm); } else { // Default results, root of the current collection @@ -132,45 +132,44 @@ type Props = { return ( - {document && collections.isLoaded - ? -
- - {this.renderPathToCurrentDocument()} - -
+ {document && + collections.isLoaded && + +
+ + {this.renderPathToCurrentDocument()} + +
-
- - - - - - {this.results.map((result, index) => ( - - index === 0 && this.setFirstDocumentRef(ref)} - onSuccess={this.handleClose} - /> - ))} - - -
-
- :
} +
+ + + + + + {this.results.map((result, index) => ( + index === 0 && this.setFirstDocumentRef(ref)} + onSuccess={this.handleClose} + /> + ))} + + +
+ } ); }