Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

"TypeError: Cannot read property 'map' of undefined" when importing models #25

Open
Jorenm opened this issue Nov 20, 2020 · 0 comments
Open

Comments

@Jorenm
Copy link

Jorenm commented Nov 20, 2020

in @mmintel\datocms-tools\dist\lib.min.js:224:47

I stripped down the exported data to try to get it working, but it still fails with this minimal data:

  "itemTypes": [
    {
      "id": "368729",
      "name": "Hero Slider",
      "apiKey": "hero_slider",
      "collectionAppeareance": "table",
      "collectionAppearance": "table",
      "singleton": false,
      "allLocalesRequired": true,
      "sortable": false,
      "modularBlock": false,
      "draftModeActive": false,
      "tree": false,
      "orderingDirection": null,
      "hasSingletonItem": false,
      "singletonItem": null,
      "titleField": "1652474",
      "orderingField": null
    }
  ],
  "fields": [
    {
      "id": "1652474",
      "label": "Title",
      "fieldType": "string",
      "localized": false,
      "defaultValue": null,
      "apiKey": "title",
      "hint": null,
      "validators": {},
      "appeareance": {
        "addons": [],
        "editor": "single_line",
        "parameters": {
          "heading": false
        }
      },
      "appearance": {
        "addons": [],
        "editor": "single_line",
        "parameters": {
          "heading": false
        }
      },
      "position": 1,
      "itemType": "368729",
      "fieldset": null
    }
  ]
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant