Skip to content

Commit

Permalink
fix: Cloning devfile object
Browse files Browse the repository at this point in the history
Signed-off-by: Anatolii Bazko <[email protected]>
  • Loading branch information
tolusha committed Jan 23, 2025
1 parent f8c9dcc commit 3bc1815
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,8 @@ class CreatingStepApplyDevfile extends ProgressStep<Props, State> {
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) {
Expand Down

0 comments on commit 3bc1815

Please sign in to comment.