Updated GroupCollectionTimeline

• Updated:
- GroupCollectionTimeline
This commit is contained in:
mgabdev 2020-08-07 18:03:11 -05:00
parent 8cafd0f301
commit 6c9c36bcb3

View File

@ -26,11 +26,11 @@ const messages = defineMessages({
empty: { id: 'empty_column.group_collection_timeline', defaultMessage: 'There are no gabs to display.' }, empty: { id: 'empty_column.group_collection_timeline', defaultMessage: 'There are no gabs to display.' },
}) })
const mapStateToProps = (state, { collectionType }) => { const mapStateToProps = (state) => {
let dontShowGroupSort = true let dontShowGroupSort = true
try { try {
dontShowGroupSort = !!me && collectionType === 'member' && state.getIn(['timelines', `group_collection:${collectionType}`, 'items'], ImmutableList()).count() === 0 dontShowGroupSort = state.getIn(['group_lists', 'member', 'items'], ImmutableList()).count() === 0
} catch (error) { } catch (error) {
// //
} }
@ -162,7 +162,7 @@ class GroupCollectionTimeline extends PureComponent {
dontShowGroupSort, dontShowGroupSort,
} = this.props } = this.props
const emptyMessage = !!me && collectionType === 'member' ? ( const emptyMessage = !!me && collectionType === 'member' && dontShowGroupSort ? (
<div className={[_s.default, _s.width100PC]}> <div className={[_s.default, _s.width100PC]}>
<Text className={[_s.default, _s.mb10].join(' ')}> <Text className={[_s.default, _s.mb10].join(' ')}>
Join some groups then come back here to view your group timeline Join some groups then come back here to view your group timeline