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 1
1
{
2
2
"name" : " gojs-angular" ,
3
- "version" : " 2.0.3 " ,
3
+ "version" : " 2.0.4 " ,
4
4
"peerDependencies" : {
5
5
"@angular/common" : " >=11.0.0" ,
6
6
"@angular/core" : " >=11.0.0"
Original file line number Diff line number Diff line change @@ -55,13 +55,13 @@ export class NgDiagramHelper{
55
55
diagram . delayInitialization ( ( ) => {
56
56
const model = diagram . model ;
57
57
model . commit ( ( m : go . Model ) => {
58
+ if ( modelData ) {
59
+ m . assignAllDataProperties ( m . modelData , modelData ) ;
60
+ }
58
61
m . mergeNodeDataArray ( m . cloneDeep ( nodeDataArray ) ) ;
59
62
if ( linkDataArray && m instanceof go . GraphLinksModel ) {
60
63
m . mergeLinkDataArray ( m . cloneDeep ( linkDataArray ) ) ;
61
64
}
62
- if ( modelData ) {
63
- m . assignAllDataProperties ( m . modelData , modelData ) ;
64
- }
65
65
} , null ) ;
66
66
} ) ;
67
67
}
You can’t perform that action at this time.
0 commit comments