fix: add fetchRetryOptions in SupersetClientClass.request method (#867)

Co-authored-by: mario.scriminaci <mario.scriminaci+jira@contentwise.com>
This commit is contained in:
Mario Scriminaci 2020-12-16 19:41:01 +01:00 committed by Yongjie Zhao
parent 05f335477d
commit b96586b0a9

View File

@ -126,6 +126,7 @@ export default class SupersetClientClass {
url,
headers,
timeout,
fetchRetryOptions,
...rest
}: RequestConfig & { parseMethod?: T }) {
await this.ensureAuth();
@ -136,6 +137,7 @@ export default class SupersetClientClass {
url: this.getUrl({ endpoint, host, url }),
headers: { ...this.headers, ...headers },
timeout: timeout ?? this.timeout,
fetchRetryOptions: fetchRetryOptions ?? this.fetchRetryOptions,
});
}