Fix collection manager JavaScript errors after attribute naming changes

- Update collection manager to use data-collection-id instead of data-content-id
- Add safety checks to prevent undefined Map access in addItemControls
- Add validation in editor to only initialize collections with valid collection IDs
- Resolves TypeError and missing attribute errors in frontend collection management
This commit is contained in:
2025-10-07 23:03:45 +02:00
parent 824719f07d
commit 2959ecedf9
4 changed files with 7 additions and 142 deletions

1
lib/package-lock.json generated
View File

@@ -311,6 +311,7 @@
"integrity": "sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w==",
"dev": true,
"license": "MIT",
"peer": true,
"bin": {
"rollup": "dist/bin/rollup"
},