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

fix(issue-672): fallback to contextName from sasjs config if provided contextName is empty

This commit is contained in:
2022-03-07 17:49:36 +05:00
parent f372adca5b
commit a607c56bb3

View File

@@ -113,6 +113,9 @@ export default class SASjs {
debug?: boolean
) {
this.isMethodSupported('executeScriptSASViya', [ServerType.SasViya])
contextName = contextName || this.sasjsConfig.contextName
if (!contextName) {
throw new Error(
'Context name is undefined. Please set a `contextName` in your SASjs or override config.'