Publish: Add rudimentary error handling when creating new channels

This commit is contained in:
Alex Liebowitz 2017-04-10 04:09:01 -04:00
parent 6c68eb5e2b
commit 797f9eafdc

View file

@ -307,7 +307,8 @@ var PublishPage = React.createClass({
this._updateChannelList(newChannelName);
}, 5000);
}, (error) => {
// TODO: add error handling
// TODO: better error handling
this.refs.newChannelName.showAdvice('Unable to create channel due to an internal error.');
this.setState({
creatingChannel: false,
});