Skip to content

Commit

Permalink
fix custom src
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Apr 1, 2024
1 parent c24329a commit f7e38b6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .helm/adhoc/ingress-angular.tc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: voluba-angular-ingress
labels:
name: voluba-angular-ingress
spec:
rules:
- host: voluba-angular.apps.tc.humanbrainproject.eu
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: voluba-angular-voluba-prod
port:
number: 8080
tls:
- secretName: voluba-angular-ebrains-secret
hosts:
- voluba-angular.apps.tc.humanbrainproject.eu
7 changes: 6 additions & 1 deletion frontend/src/views/input-volumes/input-volumes.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,12 @@ export class InputVolumesComponent {
* getting volumes from customSrc
*/
from(
fetch("user/customSrc").then(res => res.json())
fetch("user/customSrc").then(res => {
if (!res.ok) {
return { customSrc: [] }
}
return res.json()
})
).pipe(
map((resp: CustomSrc) => {
const { customSrc } = resp
Expand Down

0 comments on commit f7e38b6

Please sign in to comment.