mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
(cherry picked from commit c8b327c52c
)
Co-authored-by: Sander Philipse <94373878+sphilipse@users.noreply.github.com>
This commit is contained in:
parent
6a8a000402
commit
d49a3c4575
2 changed files with 8 additions and 3 deletions
|
@ -720,7 +720,7 @@ describe('AddSourceLogic', () => {
|
|||
|
||||
expect(http.get).toHaveBeenCalledWith(
|
||||
'/internal/workplace_search/account/sources/github/prepare',
|
||||
{ query: { index_permissions: false } }
|
||||
{ query: {} }
|
||||
);
|
||||
});
|
||||
|
||||
|
|
|
@ -375,12 +375,17 @@ export const AddSourceLogic = kea<MakeLogicType<AddSourceValues, AddSourceAction
|
|||
const route = isOrganization
|
||||
? `/internal/workplace_search/org/sources/${serviceType}/prepare`
|
||||
: `/internal/workplace_search/account/sources/${serviceType}/prepare`;
|
||||
|
||||
const indexPermissionsQuery = isOrganization
|
||||
? { index_permissions: indexPermissions }
|
||||
: undefined;
|
||||
|
||||
const query = subdomain
|
||||
? {
|
||||
index_permissions: indexPermissions,
|
||||
...indexPermissionsQuery,
|
||||
subdomain,
|
||||
}
|
||||
: { index_permissions: indexPermissions };
|
||||
: { ...indexPermissionsQuery };
|
||||
|
||||
try {
|
||||
const response = await HttpLogic.values.http.get<SourceConnectData>(route, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue