Skip to content

Commit

Permalink
EPMRPP-88960 || React error when clicking on created integration afte…
Browse files Browse the repository at this point in the history
…r enabling plugin (#3724)
  • Loading branch information
BlazarQSO authored Jan 16, 2024
1 parent 3a9e194 commit 27c4a18
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/controllers/plugins/sagas.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import {
FETCH_GLOBAL_INTEGRATIONS,
SECRET_FIELDS_KEY,
FETCH_GLOBAL_INTEGRATIONS_SUCCESS,
UPDATE_PLUGIN_SUCCESS,
PUBLIC_PLUGINS,
} from './constants';
import { resolveIntegrationUrl } from './utils';
Expand Down Expand Up @@ -257,13 +258,16 @@ function* watchRemovePlugin() {
// TODO: in the future plugins with js parts should not depend on integrations, only on plugins.
function* watchPluginChange() {
yield takeEvery(
[createFetchPredicate(NAMESPACE), FETCH_GLOBAL_INTEGRATIONS_SUCCESS],
[createFetchPredicate(NAMESPACE), FETCH_GLOBAL_INTEGRATIONS_SUCCESS, UPDATE_PLUGIN_SUCCESS],
fetchUiExtensions,
);
}

function* watchPublicPluginChange() {
yield takeEvery(createFetchPredicate(PUBLIC_PLUGINS), fetchExtensionsMetadata);
yield takeEvery(
[createFetchPredicate(PUBLIC_PLUGINS), UPDATE_PLUGIN_SUCCESS],
fetchExtensionsMetadata,
);
}

export function* pluginSagas() {
Expand Down

0 comments on commit 27c4a18

Please sign in to comment.