summaryrefslogtreecommitdiffstats
path: root/webapp/components/rename_channel_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/rename_channel_modal.jsx')
-rw-r--r--webapp/components/rename_channel_modal.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/rename_channel_modal.jsx b/webapp/components/rename_channel_modal.jsx
index 5253b1c80..9e2cfd8d8 100644
--- a/webapp/components/rename_channel_modal.jsx
+++ b/webapp/components/rename_channel_modal.jsx
@@ -4,6 +4,7 @@
import ReactDOM from 'react-dom';
import * as Utils from 'utils/utils.jsx';
import Constants from 'utils/constants.jsx';
+import {cleanUpUrlable} from 'utils/url.jsx';
import {intlShape, injectIntl, defineMessages, FormattedMessage} from 'react-intl';
import {updateChannel} from 'actions/channel_actions.jsx';
@@ -145,7 +146,7 @@ export class RenameChannelModal extends React.Component {
state.nameError = formatMessage(holders.maxLength);
state.invalid = true;
} else {
- const cleanedName = Utils.cleanUpUrlable(channel.name);
+ const cleanedName = cleanUpUrlable(channel.name);
if (cleanedName === channel.name) {
state.nameError = '';
} else {