Fix JavaScript console warning when loading notifications (#19772)

th-downstream
Sunny Ripert 2 years ago committed by GitHub
parent 343099eafa
commit c91962983f

@ -58,7 +58,7 @@ const getNotifications = createSelector([
const mapStateToProps = state => ({
showFilterBar: state.getIn(['settings', 'notifications', 'quickFilter', 'show']),
notifications: getNotifications(state),
isLoading: state.getIn(['notifications', 'isLoading'], true),
isLoading: state.getIn(['notifications', 'isLoading'], 0) > 0,
isUnread: state.getIn(['notifications', 'unread']) > 0 || state.getIn(['notifications', 'pendingItems']).size > 0,
hasMore: state.getIn(['notifications', 'hasMore']),
numPending: state.getIn(['notifications', 'pendingItems'], ImmutableList()).size,

Loading…
Cancel
Save