From cadd8c055672e0f80f72d51d5256e526767281b5 Mon Sep 17 00:00:00 2001 From: Neil MacDougall Date: Fri, 2 Oct 2020 12:02:36 +0100 Subject: [PATCH] Fix: YAML editor does not load when installing Stratos Helm Chart --- .../custom/kubernetes/workloads/chart-values-editor/merge.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frontend/packages/suse-extensions/src/custom/kubernetes/workloads/chart-values-editor/merge.ts b/src/frontend/packages/suse-extensions/src/custom/kubernetes/workloads/chart-values-editor/merge.ts index 39ef4cf042..a1b60d139b 100644 --- a/src/frontend/packages/suse-extensions/src/custom/kubernetes/workloads/chart-values-editor/merge.ts +++ b/src/frontend/packages/suse-extensions/src/custom/kubernetes/workloads/chart-values-editor/merge.ts @@ -13,6 +13,10 @@ export function mergeObjects(src: any, ...dest: any): any { // merge from dest into src function doMergeObjects(src: any, dest: any) { // Go through the keys of dest an update them in src + if (!dest) { + return + } + Object.keys(dest).forEach(key => { if (typeof(dest[key]) === 'object' && !Array.isArray(dest)) { if (!src[key]) {