mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-19 10:00:06 +00:00
fix: error when multiple redirections happen while debug is on
This commit is contained in:
@@ -154,11 +154,14 @@ export class RequestClient implements HttpClient {
|
|||||||
sasWork = log
|
sasWork = log
|
||||||
}
|
}
|
||||||
} else if (response?.result) {
|
} else if (response?.result) {
|
||||||
|
// We parse only if it's a string, otherwise it would throw error
|
||||||
|
if (typeof response.result === 'string') {
|
||||||
sourceCode = parseSourceCode(response.result)
|
sourceCode = parseSourceCode(response.result)
|
||||||
generatedCode = parseGeneratedCode(response.result)
|
generatedCode = parseGeneratedCode(response.result)
|
||||||
sasWork = response.result.WORK
|
sasWork = response.result.WORK
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const stringifiedResult =
|
const stringifiedResult =
|
||||||
typeof response?.result === 'string'
|
typeof response?.result === 'string'
|
||||||
|
|||||||
Reference in New Issue
Block a user