Skip to content

Commit

Permalink
Fix a bug where error not displaying when connector misconfigured
Browse files Browse the repository at this point in the history
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 committed Nov 3, 2021
1 parent 9c98c2b commit 6faca7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,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 6faca7e

Please sign in to comment.