decaporg / decap-cms

A Git-based CMS for Static Site Generators
https://decapcms.org
MIT License
17.84k stars 3.04k forks source link

TypeError: Cannot read properties of undefined (reading 'getIn') #6985

Closed andreavl closed 10 months ago

andreavl commented 10 months ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: github
  branch: production
  repo: nbcnews/hfs-cms
load_config_file: false
media_folder: /uploads
publish_mode: simple
search: false
collections:
  - create: true
    delete: false
    extension: json
    folder: data/navigation
    format: json
    label: Brands (PROD)
    name: navigation
    slug: "{{fields.key}}"
    fields:
      - hint: Identification used by the navigation rendering service.
        label: Key
        name: key
        pattern:
          - ^[_a-z]+$
          - Only Lowercase alpha and underscore chars
        widget: string
      - label: Navigation Menus
        label_singular: Navigation Menu
        name: header
        widget: list
        fields:
          - hint: Identification used by the navigation rendering service.
            label: Key
            name: key
            pattern:
              - ^[_a-z]+$
              - Only Lowercase alpha and underscore chars
            widget: string
          - hint: Optional heading displayed above links in the hamburger menu.
            label: Title
            name: title
            required: false
            widget: string
          - label: Links
            label_singular: Link
            min: 0
            name: links
            summary: "{{fields.text}}"
            widget: list
            fields:
              - hint: Text visible to user
                label: Link text
                name: text
                widget: string
              - hint: Full URL link (include https://www)
                label: Link HREF
                name: href
                pattern:
                  - &a1 {}
                  - Must be a valid url
                widget: string
              - default: _self
                hint: If you make no selection, the link opens in the same window
                label: Target
                name: target
                options:
                  - value: _self
                    label: Same tab (default)
                  - value: _blank
                    label: New tab
                  - value: _parent
                    label: Parent context (used with iframe)
                  - value: _top
                    label: Topmost context (used with iframe)
                widget: select
              - label: Sub Links
                label_singular: Link
                min: 0
                name: sublinks
                summary: "{{fields.text}}"
                widget: list
                fields:
                  - hint: Text visible to user
                    label: Link text
                    name: text
                    widget: string
                  - hint: Full URL link (include https://www)
                    label: Link HREF
                    name: href
                    pattern:
                      - *a1
                      - Must be a valid url
                    widget: string
                  - default: _self
                    hint: If you make no selection, the link opens in the same window
                    label: Target
                    name: target
                    options:
                      - value: _self
                        label: Same tab (default)
                      - value: _blank
                        label: New tab
                      - value: _parent
                        label: Parent context (used with iframe)
                      - value: _top
                        label: Topmost context (used with iframe)
                    widget: select
                  - label: Relationship
                    multiple: true
                    name: rel

...
martinjagodic commented 10 months ago

Hi @andreavl, please fill out all the fields in the issue template. The information you provided is not enough to debug the problem.

I'm closing the issue for now. Once you add the missing information, I can open it again.