Fixed issue with composer destination in group, timeline
• Fixed: - mobile composer min height - issue with composer destination in group, timeline (hopefully)
This commit is contained in:
@@ -5,7 +5,6 @@ import { defineMessages, injectIntl } from 'react-intl'
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes'
|
||||
import ImmutablePureComponent from 'react-immutable-pure-component'
|
||||
import { fetchGroup } from '../actions/groups'
|
||||
import { changeComposeGroupId } from '../actions/compose'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import GroupLayout from '../layouts/group_layout'
|
||||
import TimelineComposeBlock from '../components/timeline_compose_block'
|
||||
@@ -16,18 +15,11 @@ import Divider from '../components/divider'
|
||||
class GroupPage extends ImmutablePureComponent {
|
||||
|
||||
componentDidMount() {
|
||||
if (!this.props.group) {
|
||||
this.props.dispatch(fetchGroup(this.props.params.id))
|
||||
}
|
||||
this.props.dispatch(fetchGroup(this.props.params.id))
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
//Reset group composer
|
||||
this.props.dispatch(changeComposeGroupId(null))
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps) {
|
||||
if (!!this.props.group && prevProps.params.id !== this.props.params.id) {
|
||||
if (prevProps.params.id !== this.props.params.id) {
|
||||
this.props.dispatch(fetchGroup(this.props.params.id))
|
||||
}
|
||||
}
|
||||
@@ -51,7 +43,7 @@ class GroupPage extends ImmutablePureComponent {
|
||||
if (!!group) {
|
||||
if (group.get('archived')) return null
|
||||
}
|
||||
|
||||
|
||||
return (
|
||||
<GroupLayout
|
||||
title={'Group'}
|
||||
|
||||
Reference in New Issue
Block a user