fix: incorrectly duplicating items on paste/library insert (#6467

* fix: incorrectly duplicating items on paste/library insert

* fix: deduplicate element ids on restore

* tests
This commit is contained in:
David Luzar 2023-04-16 17:22:16 +02:00 committed by GitHub
parent e7e54814e7
commit f640ddc2aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 153 additions and 43 deletions

View file

@ -13431,7 +13431,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id0_copy",
@ -13464,7 +13464,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id1_copy",
@ -13497,7 +13497,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id2_copy",
@ -13981,7 +13981,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id0_copy",
@ -14011,7 +14011,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id1_copy",
@ -14041,7 +14041,7 @@ Object {
"boundElements": null,
"fillStyle": "hachure",
"groupIds": Array [
"id6",
"id4_copy",
],
"height": 10,
"id": "id2_copy",