diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/rename_channel_modal.jsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/webapp/components/rename_channel_modal.jsx b/webapp/components/rename_channel_modal.jsx index bb6d4f26d..3eaab834f 100644 --- a/webapp/components/rename_channel_modal.jsx +++ b/webapp/components/rename_channel_modal.jsx @@ -3,11 +3,10 @@ import ReactDOM from 'react-dom'; import * as Utils from 'utils/utils.jsx'; -import Client from 'client/web_client.jsx'; -import * as AsyncClient from 'utils/async_client.jsx'; import Constants from 'utils/constants.jsx'; import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl'; +import {updateChannel} from 'actions/channel_actions.jsx'; import {Modal} from 'react-bootstrap'; @@ -161,10 +160,8 @@ export class RenameChannelModal extends React.Component { return; } - Client.updateChannel( - channel, + updateChannel(channel, () => { - AsyncClient.getChannel(channel.id); this.handleHide(); }, (err) => { |