diff options
Diffstat (limited to 'catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts')
-rw-r--r-- | catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts index 0003f53403..812f157c1b 100644 --- a/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts +++ b/catalog-ui/src/app/ng2/services/component-services/topology-template.service.ts @@ -659,7 +659,7 @@ export class TopologyTemplateService { getDefaultCustomFunction(type='ALL'): Observable<CustomToscaFunction[]> { return this.http.get<DefaultCustomFunctions>(this.baseUrl + "customToscaFunctions/" + type) - .pipe(map(response => response.defaultCustomToscaFunction ? response.defaultCustomToscaFunction : undefined)); + .pipe(map(response => response && response.defaultCustomToscaFunction ? response.defaultCustomToscaFunction : [])); } } |