Skip to content

Commit

Permalink
[UII] Fix Fleet Kibana SOs not loading on _debug page (elastic#183948)
Browse files Browse the repository at this point in the history
## Summary

As the title says :)
  • Loading branch information
jen-huang authored May 21, 2024
1 parent db4c26f commit 9e109af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ import {
PACKAGES_SAVED_OBJECT_TYPE,
DOWNLOAD_SOURCE_SAVED_OBJECT_TYPE,
FLEET_SERVER_HOST_SAVED_OBJECT_TYPE,
INGEST_SAVED_OBJECT_INDEX,
} from '../../../../../../common/constants';

import { CodeBlock } from './code_block';
import { SavedObjectNamesCombo } from './saved_object_names_combo';

const fetchSavedObjects = async (type?: string, name?: string) => {
if (!type || !name) return;
const path = `/.kibana/_search`;
const path = `/${INGEST_SAVED_OBJECT_INDEX}/_search`;
const body = {
query: {
bool: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ import { EuiComboBox } from '@elastic/eui';
import { i18n } from '@kbn/i18n';

import { sendRequest } from '../../../hooks';
import { INGEST_SAVED_OBJECT_INDEX } from '../../../../../../common/constants';

const fetchSavedObjectNames = async (type: string) => {
const path = `/.kibana/_search`;
const path = `/${INGEST_SAVED_OBJECT_INDEX}/_search`;
const body = {
size: 0,
query: {
Expand Down

0 comments on commit 9e109af

Please sign in to comment.