fix(ui): fix bookmarking
This commit is contained in:
parent
09cde2e5ec
commit
41e093312a
1 changed files with 1 additions and 1 deletions
|
|
@ -24,7 +24,6 @@ function Bookmark(props : Props ) {
|
|||
const ACTIVE_ICON = isEnterprise ? 'safe-fill' : 'star-solid';
|
||||
const INACTIVE_ICON = isEnterprise ? 'safe' : 'star';
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
setIsFavorite(favorite);
|
||||
}, [favorite]);
|
||||
|
|
@ -63,4 +62,5 @@ function Bookmark(props : Props ) {
|
|||
|
||||
export default connect(state => ({
|
||||
isEnterprise: state.getIn([ 'user', 'account', 'edition' ]) === 'ee',
|
||||
favorite: state.getIn([ 'sessions', 'current', 'favorite']),
|
||||
}), { toggleFavorite })(Bookmark)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue