diff options
Diffstat (limited to 'webapp/components')
-rw-r--r-- | webapp/components/integrations/components/installed_incoming_webhooks.jsx | 4 | ||||
-rw-r--r-- | webapp/components/integrations/components/installed_outgoing_webhooks.jsx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/webapp/components/integrations/components/installed_incoming_webhooks.jsx b/webapp/components/integrations/components/installed_incoming_webhooks.jsx index 2b46dbd40..06fa217dc 100644 --- a/webapp/components/integrations/components/installed_incoming_webhooks.jsx +++ b/webapp/components/integrations/components/installed_incoming_webhooks.jsx @@ -9,7 +9,7 @@ import IntegrationStore from 'stores/integration_store.jsx'; import TeamStore from 'stores/team_store.jsx'; import UserStore from 'stores/user_store.jsx'; -import {loadIncomingHooks, deleteIncomingHook} from 'actions/integration_actions.jsx'; +import {loadIncomingHooksForTeam, deleteIncomingHook} from 'actions/integration_actions.jsx'; import * as Utils from 'utils/utils.jsx'; @@ -48,7 +48,7 @@ export default class InstalledIncomingWebhooks extends React.Component { UserStore.addChangeListener(this.handleUserChange); if (window.mm_config.EnableIncomingWebhooks === 'true') { - loadIncomingHooks(() => this.setState({loading: false})); + loadIncomingHooksForTeam(TeamStore.getCurrentId(), () => this.setState({loading: false})); } } diff --git a/webapp/components/integrations/components/installed_outgoing_webhooks.jsx b/webapp/components/integrations/components/installed_outgoing_webhooks.jsx index 4f39b0f05..9b8baf3f4 100644 --- a/webapp/components/integrations/components/installed_outgoing_webhooks.jsx +++ b/webapp/components/integrations/components/installed_outgoing_webhooks.jsx @@ -9,7 +9,7 @@ import IntegrationStore from 'stores/integration_store.jsx'; import TeamStore from 'stores/team_store.jsx'; import UserStore from 'stores/user_store.jsx'; -import {loadOutgoingHooks, regenOutgoingHookToken, deleteOutgoingHook} from 'actions/integration_actions.jsx'; +import {loadOutgoingHooksForTeam, regenOutgoingHookToken, deleteOutgoingHook} from 'actions/integration_actions.jsx'; import * as Utils from 'utils/utils.jsx'; @@ -49,7 +49,7 @@ export default class InstalledOutgoingWebhooks extends React.Component { UserStore.addChangeListener(this.handleUserChange); if (window.mm_config.EnableOutgoingWebhooks === 'true') { - loadOutgoingHooks(() => this.setState({loading: false})); + loadOutgoingHooksForTeam(TeamStore.getCurrentId(), () => this.setState({loading: false})); } } |