Issue-ID: SDC-4500
Signed-off-by: JvD_Ericsson <jeff.van.dam@est.tech>
Change-Id: Iebc394b42863dd1e72a40095ea04d04495af57d3
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 : []));
}
}