File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " gojs-angular" ,
3- "version" : " 2.0.3 " ,
3+ "version" : " 2.0.4 " ,
44 "peerDependencies" : {
55 "@angular/common" : " >=11.0.0" ,
66 "@angular/core" : " >=11.0.0"
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ export class NgDiagramHelper{
5555 diagram . delayInitialization ( ( ) => {
5656 const model = diagram . model ;
5757 model . commit ( ( m : go . Model ) => {
58+ if ( modelData ) {
59+ m . assignAllDataProperties ( m . modelData , modelData ) ;
60+ }
5861 m . mergeNodeDataArray ( m . cloneDeep ( nodeDataArray ) ) ;
5962 if ( linkDataArray && m instanceof go . GraphLinksModel ) {
6063 m . mergeLinkDataArray ( m . cloneDeep ( linkDataArray ) ) ;
6164 }
62- if ( modelData ) {
63- m . assignAllDataProperties ( m . modelData , modelData ) ;
64- }
6565 } , null ) ;
6666 } ) ;
6767 }
You can’t perform that action at this time.
0 commit comments