diff --git a/src/SASjs.ts b/src/SASjs.ts index e6db53d7..68946127 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -980,7 +980,7 @@ export default class SASjs { ? this.sasjsConfig.pathSASViya : this.sasjsConfig.serverType === ServerType.Sas9 ? this.sasjsConfig.pathSAS9 - : this.sasjsConfig.pathSASJS + : this.sasjsConfig.pathSASJS || '' this.authManager = new AuthManager( this.sasjsConfig.serverUrl, diff --git a/src/types/SASjsConfig.ts b/src/types/SASjsConfig.ts index a40db2f8..8aab6784 100644 --- a/src/types/SASjsConfig.ts +++ b/src/types/SASjsConfig.ts @@ -16,7 +16,7 @@ export class SASjsConfig { * The location of the STP Process Web Application. By default the adapter * will use '/SASjsApi/stp/execute' on SAS JS. */ - pathSASJS: string = '' + pathSASJS?: string = '' /** * The location of the Stored Process Web Application. By default the adapter * will use '/SASStoredProcess/do' on SAS 9.