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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user