mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-18 20:18:15 +02:00
[#7760] fixed missing import collection fields property access
This commit is contained in:
1 parent
0c7d243d97
commit
4221a1b803
9 files changed
+11
-9
No files matched your search
@@ -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})`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user