1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-03 02:30:06 +00:00

fix: can not read property map of undefined

This commit is contained in:
2022-04-18 23:28:12 +05:00
parent 135d019026
commit 7370a2be4c

View File

@@ -80,9 +80,11 @@ export class SASjsApiClient {
await this.requestClient
.post('SASjsApi/code/execute', { code }, access_token)
.then((res: any) => {
parsedSasjsServerLog = res.result.log
.map((logLine: any) => logLine.line)
.join('\n')
if (res.result?.log) {
parsedSasjsServerLog = res.result.log
.map((logLine: any) => logLine.line)
.join('\n')
}
})
.catch((err) => {
parsedSasjsServerLog = err