Skip to content

Commit

Permalink
fix: sasjs config fixed
Browse files Browse the repository at this point in the history
sabhas committed Jul 28, 2022
1 parent 9ea7fcd commit 50db44a
Showing 3 changed files with 127 additions and 11 deletions.
130 changes: 123 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@
"@material-ui/lab": "^4.0.0-alpha.60",
"@mui/icons-material": "^5.8.2",
"@mui/material": "^5.2.6",
"@sasjs/adapter": "^3.10.8",
"@sasjs/adapter": "^3.10.10",
"@sasjs/core": "^4.34.1",
"@sasjs/utils": "^2.47.0",
"axios": "^0.27.2",
6 changes: 3 additions & 3 deletions src/context/sasContext.tsx
Original file line number Diff line number Diff line change
@@ -32,17 +32,17 @@ const useComputeApi = sasElement?.getAttribute('useComputeApi')

const sasjsConfig = {
serverUrl: sasElement?.getAttribute('serverUrl') ?? undefined,
appLoc: sasElement?.getAttribute('appLoc') ?? undefined,
appLoc: sasElement?.getAttribute('appLoc') ?? '',
serverType: sasElement?.getAttribute('serverType'),
debug: sasElement?.getAttribute('debug') === 'true',
loginMechanism: sasElement?.getAttribute('loginMechanism') ?? undefined,
loginMechanism: sasElement?.getAttribute('loginMechanism') ?? 'Default',
useComputeApi:
useComputeApi === 'true'
? true
: useComputeApi === 'false'
? false
: useComputeApi,
contextName: sasElement?.getAttribute('contextName') ?? undefined
contextName: sasElement?.getAttribute('contextName') ?? ''
} as SASjsConfig

const sasService = new SASjs(sasjsConfig)

0 comments on commit 50db44a

Please sign in to comment.