parent
595cb9cda5
commit
76365e8560
|
@ -86,20 +86,12 @@ const SearchFilter = props => {
|
|||
position="right"
|
||||
>
|
||||
{({ closePortal }) => (
|
||||
<MaxHeightScrollable>
|
||||
<Content>{props.children({ closeMenu: closePortal })}</Content>
|
||||
</MaxHeightScrollable>
|
||||
<Content>{props.children({ closeMenu: closePortal })}</Content>
|
||||
)}
|
||||
</DropdownMenu>
|
||||
);
|
||||
};
|
||||
|
||||
const MaxHeightScrollable = styled(Scrollable)`
|
||||
max-height: 50vh;
|
||||
margin: -8px 0;
|
||||
padding: 8px 0;
|
||||
`;
|
||||
|
||||
const DropdownButton = styled(SearchFilter)`
|
||||
margin-right: 8px;
|
||||
`;
|
||||
|
|
|
@ -319,7 +319,7 @@ export default class DocumentsStore extends BaseStore<Document> {
|
|||
existing.splice(options.offset || 0, options.limit || 0, ...results);
|
||||
|
||||
this.searchCache.set(query, existing);
|
||||
return data;
|
||||
return res.data;
|
||||
};
|
||||
|
||||
@action
|
||||
|
|
Reference in New Issue