From 76365e85602113c6ef29fab194202e828fef435b Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 23 Dec 2019 18:08:40 -0800 Subject: [PATCH] fix: Double scrollbars on search filter dropdowns closes #1125 --- app/scenes/Search/components/FilterOptions.js | 10 +--------- app/stores/DocumentsStore.js | 2 +- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/app/scenes/Search/components/FilterOptions.js b/app/scenes/Search/components/FilterOptions.js index 9218f7f4c..130a86b0e 100644 --- a/app/scenes/Search/components/FilterOptions.js +++ b/app/scenes/Search/components/FilterOptions.js @@ -86,20 +86,12 @@ const SearchFilter = props => { position="right" > {({ closePortal }) => ( - - {props.children({ closeMenu: closePortal })} - + {props.children({ closeMenu: closePortal })} )} ); }; -const MaxHeightScrollable = styled(Scrollable)` - max-height: 50vh; - margin: -8px 0; - padding: 8px 0; -`; - const DropdownButton = styled(SearchFilter)` margin-right: 8px; `; diff --git a/app/stores/DocumentsStore.js b/app/stores/DocumentsStore.js index a77c7d41d..5bf0944f2 100644 --- a/app/stores/DocumentsStore.js +++ b/app/stores/DocumentsStore.js @@ -319,7 +319,7 @@ export default class DocumentsStore extends BaseStore { existing.splice(options.offset || 0, options.limit || 0, ...results); this.searchCache.set(query, existing); - return data; + return res.data; }; @action