diff options
author | Corey Hulen <corey@hulen.com> | 2016-04-04 08:15:13 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-04-04 08:15:13 -0700 |
commit | 578749d08315945020fcf4466a6f0709a128dbbf (patch) | |
tree | 190561a505b5f51bafd570c2c8c48196761a49e0 /webapp/utils | |
parent | ead8e64ccb42081272bca1a498a08c05825ce9d0 (diff) | |
parent | 74daec08ce7f1b6a09e4b364f45b0f05f3c28a9e (diff) | |
download | chat-578749d08315945020fcf4466a6f0709a128dbbf.tar.gz chat-578749d08315945020fcf4466a6f0709a128dbbf.tar.bz2 chat-578749d08315945020fcf4466a6f0709a128dbbf.zip |
Merge pull request #2584 from hmhealey/plt2054
PLT-2054 Add DisplayName and Description fields for integrations
Diffstat (limited to 'webapp/utils')
-rw-r--r-- | webapp/utils/async_client.jsx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/webapp/utils/async_client.jsx b/webapp/utils/async_client.jsx index cc19baa7e..db0b2258c 100644 --- a/webapp/utils/async_client.jsx +++ b/webapp/utils/async_client.jsx @@ -1182,10 +1182,10 @@ export function addIncomingHook(hook, success, error) { } }, (err) => { - dispatchError(err, 'addIncomingHook'); - if (error) { error(err); + } else { + dispatchError(err, 'addIncomingHook'); } } ); @@ -1205,10 +1205,10 @@ export function addOutgoingHook(hook, success, error) { } }, (err) => { - dispatchError(err, 'addOutgoingHook'); - if (error) { error(err); + } else { + dispatchError(err, 'addOutgoingHook'); } } ); |