diff options
author | JvD_Ericsson <jeff.van.dam@est.tech> | 2023-05-16 11:35:17 +0100 |
---|---|---|
committer | Michael Morris <michael.morris@est.tech> | 2023-05-17 08:48:10 +0000 |
commit | 087d44cbb9d388c3a6c720ee9a6349bcaf6a1f04 (patch) | |
tree | 64ee3bcf65e4d2a7135c963eb2b973cc7dbb7275 /catalog-ui/src/app/ng2/services | |
parent | a1d3ca38f51fe1fe6d5101f6a50fa057c7fbfb69 (diff) |
Error in console when no default custom tosca functions
Issue-ID: SDC-4500
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Iebc394b42863dd1e72a40095ea04d04495af57d3
Diffstat (limited to 'catalog-ui/src/app/ng2/services')
-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 : [])); } } |