Skip to content

Commit

Permalink
[8.15] [dataview] replace empty header obj with undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
muhamed-abdelgaber authored Oct 28, 2024
1 parent 664f34a commit 85e8b52
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>(url, { query, body, version, asResponse })
Expand Down

0 comments on commit 85e8b52

Please sign in to comment.