From 3bc1815b3c5748fb2102f34d5a40806e3a42362f Mon Sep 17 00:00:00 2001 From: Anatolii Bazko Date: Thu, 23 Jan 2025 16:29:47 +0100 Subject: [PATCH] fix: Cloning devfile object Signed-off-by: Anatolii Bazko --- .../WorkspaceProgress/CreatingSteps/Apply/Devfile/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/dashboard-frontend/src/components/WorkspaceProgress/CreatingSteps/Apply/Devfile/index.tsx b/packages/dashboard-frontend/src/components/WorkspaceProgress/CreatingSteps/Apply/Devfile/index.tsx index 1b0e23b15..01135cf94 100644 --- a/packages/dashboard-frontend/src/components/WorkspaceProgress/CreatingSteps/Apply/Devfile/index.tsx +++ b/packages/dashboard-frontend/src/components/WorkspaceProgress/CreatingSteps/Apply/Devfile/index.tsx @@ -316,7 +316,8 @@ class CreatingStepApplyDevfile extends ProgressStep { if (resolvedDevfile === undefined) { throw new Error('Failed to resolve the devfile.'); } - this.updateCurrentDevfile(resolvedDevfile); + const _devfile = cloneDeep(resolvedDevfile); + this.updateCurrentDevfile(_devfile); } else { const { devfile } = this.state; if (devfile) {