Skip to content

Commit

Permalink
Merge pull request #9 from joel-wenzel/hotfix/8
Browse files Browse the repository at this point in the history
fixed object assign issue for step data
  • Loading branch information
joel-wenzel authored Jun 24, 2021
2 parents e9a91b1 + 3f680c7 commit 9e2811e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ng-flowchart/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@joelwenzel/ng-flowchart",
"version": "1.0.0-beta",
"version": "1.0.1-beta",
"peerDependencies": {
"@angular/common": "^10.2.4",
"@angular/core": "^10.2.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export class StepManagerService {
componentRef = this.viewContainer.createComponent<any>(factory);
}

componentRef.instance.data = pendingStep.data;
componentRef.instance.data = JSON.parse(JSON.stringify(pendingStep.data));
componentRef.instance.type = pendingStep.type;
componentRef.instance.canvas = canvas;
componentRef.instance.compRef = componentRef;
Expand Down

0 comments on commit 9e2811e

Please sign in to comment.