From 3a4a4c3460693b8f57063fcbd8af4b12f18073e8 Mon Sep 17 00:00:00 2001 From: Mihajlo Date: Mon, 6 Dec 2021 17:44:08 +0100 Subject: [PATCH] chore: sasjs path optional --- src/SASjs.ts | 2 +- src/types/SASjsConfig.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.