@strapi/data-transfer 5.0.0-beta.3 → 5.0.0-beta.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1532,6 +1532,9 @@ const createLinkQuery = (strapi2, trx) => {
1532
1532
  const metadata = strapi2.db.metadata.get(left.type);
1533
1533
  const attribute = metadata.attributes[left.field];
1534
1534
  const payload = {};
1535
+ if (!attribute) {
1536
+ return;
1537
+ }
1535
1538
  if (attribute.type !== "relation") {
1536
1539
  throw new Error(`Attribute ${left.field} is not a relation`);
1537
1540
  }