Update default url for elasticsearch host. (#138883) (#138890)

(cherry picked from commit 500a453f7e)

Co-authored-by: Efe Gürkan YALAMAN <efeguerkan.yalaman@elastic.co>
This commit is contained in:
Kibana Machine 2022-08-16 08:19:05 -04:00 committed by GitHub
parent 4ec184361f
commit ebbdb6dbb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ export const GenerateApiKeyPanel: React.FC = () => {
const cloudContext = useCloudDetails();
const DEFAULT_URL = '<ELASTICSEARCH-HOST>:<ELASTICSEARCH-PORT>';
const DEFAULT_URL = 'https://localhost:9200';
const searchIndexApiUrl =
(cloudContext.cloudId && decodeCloudId(cloudContext.cloudId)?.elasticsearchUrl) || DEFAULT_URL;