[#7760] fixed missing import collection fields property access

This commit is contained in:
Gani Georgiev
2026-07-13 20:41:10 +03:00
parent 0c7d243d97
commit 4221a1b803
9 changed files with 11 additions and 9 deletions
@@ -77,7 +77,7 @@ function importCollectionsModal(oldCollections, newCollections, settingsArg) {
// add only deleted fields
const fields = Array.isArray(old.fields) ? old.fields : [];
for (const field of fields) {
if (!imported.fields.find((f) => f.id == field.id)) {
if (!imported.fields?.find((f) => f.id == field.id)) {
deletedFieldNames.push(`${old.name}.${field.name} (${field.id})`);
}
}