Skip to content

Commit

Permalink
fix: data.length error in console (#641)
Browse files Browse the repository at this point in the history
* fix: data.length error in console

* chore: cleanup

* fix: removing server url

Co-authored-by: Allan Bowe <[email protected]>
  • Loading branch information
medjedovicm and Allan Bowe authored Jun 19, 2022
1 parent df7fbdf commit edf48a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions sasjs/sasjsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
"serverUrl": "",
"serverType": "SASVIYA",
"appLoc": "/Public/app/angular-seed-app",
"deployConfig": {
"deployServicePack": true
},
"contextName": "SAS Job Execution compute context"
},
{
Expand All @@ -42,6 +39,7 @@
{
"name": "server",
"serverType": "SASJS",
"serverUrl": "",
"appLoc": "/Public/app/angular-seed-app",
"deployConfig": {
"deployServicePack": true
Expand Down
2 changes: 1 addition & 1 deletion src/app/data/data.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export class DataComponent implements OnInit {
this.springs = res['springs']
this.springsLoading = false

if (!res || !res['springs'] || res['spring'].length < 1) {
if (!res || !res['springs'] || res['spring']?.length < 1) {
this.noData = true
} else {
this.noData = false
Expand Down

0 comments on commit edf48a8

Please sign in to comment.