Skip to content

Commit 6c4373f

Browse files
Fix a bug where error not displaying when connector misconfigured (#117348)
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
1 parent 8aed80f commit 6c4373f

File tree

1 file changed

+1
-1
lines changed
  • x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source

1 file changed

+1
-1
lines changed

x-pack/plugins/enterprise_search/public/applications/workplace_search/views/content_sources/components/add_source/add_source_logic.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ export const AddSourceLogic = kea<MakeLogicType<AddSourceValues, AddSourceAction
546546
navigateToUrl(getSourcesPath(SOURCES_PATH, isOrganization));
547547
}
548548
} catch (e) {
549-
flashAPIErrors(e);
550549
navigateToUrl(getSourcesPath(SOURCES_PATH, isOrganization));
550+
flashAPIErrors(e);
551551
}
552552
},
553553
createContentSource: async ({ serviceType, successCallback, errorCallback }) => {

0 commit comments

Comments
 (0)