From f2da84829ed06bfec9279dfeb9219f1fd1507ebb Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Mon, 9 Aug 2021 17:28:55 +0500 Subject: [PATCH] fix(fileUploader): parsing debug response for SASVIYA --- src/FileUploader.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/FileUploader.ts b/src/FileUploader.ts index 7001bcb..675439f 100644 --- a/src/FileUploader.ts +++ b/src/FileUploader.ts @@ -64,12 +64,9 @@ export class FileUploader { return this.requestClient .post(uploadUrl, formData, undefined, 'application/json', headers) .then(async (res) => { - // for web approach on Viya if ( - this.sasjsConfig.debug && - (this.sasjsConfig.useComputeApi === null || - this.sasjsConfig.useComputeApi === undefined) && - this.sasjsConfig.serverType === ServerType.SasViya + this.sasjsConfig.serverType === ServerType.SasViya && + this.sasjsConfig.debug ) { const jsonResponse = await parseSasViyaDebugResponse( res.result as string,