Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nshmp-apps
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ghsc
National Seismic Hazard Model Project
nshmp-apps
Commits
6741c86e
Commit
6741c86e
authored
1 month ago
by
Clayton, Brandon Scott
Browse files
Options
Downloads
Patches
Plain Diff
add try-catch, return copy ov values
parent
75653741
No related branches found
No related tags found
1 merge request
!563
GMM Epistemic Issue
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/nshmp-apps/src/app/gmm/spectra/services/app.service.ts
+14
-4
14 additions, 4 deletions
...ts/nshmp-apps/src/app/gmm/spectra/services/app.service.ts
with
14 additions
and
4 deletions
projects/nshmp-apps/src/app/gmm/spectra/services/app.service.ts
+
14
−
4
View file @
6741c86e
...
@@ -287,10 +287,20 @@ export class AppService
...
@@ -287,10 +287,20 @@ export class AppService
this
.
nshmpService
this
.
nshmpService
.
callServices$
<
GmmSpectraResponse
>
(
urls
)
.
callServices$
<
GmmSpectraResponse
>
(
urls
)
.
pipe
(
catchError
((
error
:
Error
)
=>
this
.
nshmpService
.
throwError
$
(
error
)))
.
pipe
(
catchError
((
error
:
Error
)
=>
{
spinnerRef
.
close
();
return
this
.
nshmpService
.
throwError
$
(
error
);
}),
)
.
subscribe
(
serviceResponses
=>
{
.
subscribe
(
serviceResponses
=>
{
this
.
handleServiceResponses
(
serviceResponses
);
try
{
spinnerRef
.
close
();
this
.
handleServiceResponses
(
serviceResponses
);
spinnerRef
.
close
();
}
catch
(
error
)
{
spinnerRef
.
close
();
this
.
nshmpService
.
throwError
$
(
error
as
Error
);
}
});
});
}
}
...
@@ -521,7 +531,7 @@ export class AppService
...
@@ -521,7 +531,7 @@ export class AppService
})
})
.
sort
((
a
,
b
)
=>
a
-
b
);
.
sort
((
a
,
b
)
=>
a
-
b
);
return
xValues
;
return
[...
xValues
]
;
}
}
private
handleServiceResponses
(
serviceResponses
:
GmmSpectraResponse
[]):
void
{
private
handleServiceResponses
(
serviceResponses
:
GmmSpectraResponse
[]):
void
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment