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 Nov 3, 2021
1 parent 8aed80f commit 6c4373f
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 6c4373f

Please sign in to comment.