From 85e8b52c603b34c89731d0b833716a2fa9e9b1ea Mon Sep 17 00:00:00 2001 From: Mohamed Abdelgaber Date: Mon, 28 Oct 2024 20:24:21 +0100 Subject: [PATCH] [8.15] [dataview] replace empty header obj with undefined --- .../data_views/public/data_views/data_views_api_client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/data_views/public/data_views/data_views_api_client.ts b/src/plugins/data_views/public/data_views/data_views_api_client.ts index 6bb7bc903a250..233b05ea7bc22 100644 --- a/src/plugins/data_views/public/data_views/data_views_api_client.ts +++ b/src/plugins/data_views/public/data_views/data_views_api_client.ts @@ -56,7 +56,7 @@ export class DataViewsApiClient implements IDataViewsApiClient { const userId = await this.getCurrentUserId(); const userHash = userId ? await sha1(userId) : ''; - const headers = userHash ? { 'user-hash': userHash } : {}; + const headers = userHash ? { 'user-hash': userHash } : undefined; const request = body ? this.http.post(url, { query, body, version, asResponse })