PLT-5863 Fixing double display of error message (#6104)

Этот коммит содержится в:
Corey Hulen
2017-04-17 07:55:26 -07:00
коммит произвёл Christopher Speller
родитель acc991dea1
Коммит a2f5ad0d14

Просмотреть файл

@@ -432,10 +432,10 @@ export function createChannel(channel, success, error) {
} }
}, },
(err) => { (err) => {
AsyncClient.dispatchError(err, 'createChannel');
if (error) { if (error) {
error(err); error(err);
} else {
AsyncClient.dispatchError(err, 'createChannel');
} }
} }
); );