We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c5ec3 commit 4dd2544Copy full SHA for 4dd2544
projects/gojs-angular/package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "gojs-angular",
3
- "version": "2.0.8",
+ "version": "2.0.9",
4
"peerDependencies": {
5
"@angular/common": "^18.0.0",
6
"@angular/core": "^18.0.0"
projects/gojs-angular/src/lib/data-sync.service.ts
@@ -55,7 +55,8 @@ export class DataSyncService {
55
const removals = changes.removedNodeKeys.map(key => keyIdxMap.get(key)) as number[];
56
removals.sort((a, b) => a - b);
57
for (let i = removals.length - 1; i >= 0; i--) {
58
- draft.splice(removals[i], 1);
+ const idx = removals[i];
59
+ if (idx !== undefined) draft.splice(idx, 1);
60
}
61
62
});
0 commit comments