Move remaining actions over to use redux and v4 endpoints (#6720)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fe7e9d95b3
Коммит
23ccfc845c
@@ -25,11 +25,9 @@ export default class ChannelView extends React.Component {
|
||||
|
||||
this.state = this.getStateFromStores(props);
|
||||
}
|
||||
getStateFromStores(props) {
|
||||
const channel = ChannelStore.getByName(props.params.channel);
|
||||
const channelId = channel ? channel.id : '';
|
||||
getStateFromStores() {
|
||||
return {
|
||||
channelId
|
||||
channelId: ChannelStore.getCurrentId()
|
||||
};
|
||||
}
|
||||
isStateValid() {
|
||||
|
||||
Ссылка в новой задаче
Block a user