Skip to content

Commit

Permalink
Fix a bug where error not displaying when connector misconfigured (#1…
Browse files Browse the repository at this point in the history
…17348)

This PR fixes a bug where the error was not displaying when misconfigured connector was connected and redirected back. The issue was that the redirect was occuring after the flash message was set and the fix was to redirect and then show the flash message
  • Loading branch information
scottybollinger authored and kibanamachine committed Nov 3, 2021
1 parent 8f6b4de commit d639103
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,8 @@ export const AddSourceLogic = kea<MakeLogicType<AddSourceValues, AddSourceAction
navigateToUrl(getSourcesPath(SOURCES_PATH, isOrganization));
}
} catch (e) {
flashAPIErrors(e);
navigateToUrl(getSourcesPath(SOURCES_PATH, isOrganization));
flashAPIErrors(e);
}
},
createContentSource: async ({ serviceType, successCallback, errorCallback }) => {
Expand Down

0 comments on commit d639103

Please sign in to comment.