summaryrefslogtreecommitdiffstats
path: root/webapp/components/delete_channel_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/delete_channel_modal.jsx')
-rw-r--r--webapp/components/delete_channel_modal.jsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/webapp/components/delete_channel_modal.jsx b/webapp/components/delete_channel_modal.jsx
index 7ec6fde44..315a3cd5e 100644
--- a/webapp/components/delete_channel_modal.jsx
+++ b/webapp/components/delete_channel_modal.jsx
@@ -13,6 +13,8 @@ import {browserHistory} from 'react-router/es6';
import React from 'react';
+import {loadChannelsForCurrentUser} from 'actions/channel_actions.jsx';
+
export default class DeleteChannelModal extends React.Component {
constructor(props) {
super(props);
@@ -29,7 +31,7 @@ export default class DeleteChannelModal extends React.Component {
Client.deleteChannel(
this.props.channel.id,
() => {
- AsyncClient.getChannels(true);
+ loadChannelsForCurrentUser();
},
(err) => {
AsyncClient.dispatchError(err, 'handleDelete');