X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/ffdce0fe089aab55d26a3a4fe05934b912c691af..7f137c5a4162717b74668a513b8b10a1ed3d8577:/src/views/favorite-panel/favorite-panel.tsx diff --git a/src/views/favorite-panel/favorite-panel.tsx b/src/views/favorite-panel/favorite-panel.tsx index 73849562..4ba967c0 100644 --- a/src/views/favorite-panel/favorite-panel.tsx +++ b/src/views/favorite-panel/favorite-panel.tsx @@ -164,23 +164,18 @@ export const FavoritePanel = withStyles(styles)( connect(mapStateToProps, mapDispatchToProps)( class extends React.Component { render() { - return this.hasAnyFavorites() - ? } /> - : ; - } - - hasAnyFavorites = () => { - return Object - .keys(this.props.favorites) - .find(uuid => this.props.favorites[uuid]); + return + } />; } } )