decaporg / decap-cms

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

TypeError: l.map is not a function #7240

Closed fThAbhishek-Pandey closed 2 days ago

fThAbhishek-Pandey commented 2 days ago

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

CMS configuration


backend:
  name: git-gateway
  branch: main
  commit_messages:
    create: Create {{collection}} “{{slug}}”
    update: Update {{collection}} “{{slug}}”
    delete: Delete {{collection}} “{{slug}}”
    uploadMedia: "[skip ci] Upload “{{path}}”"
    deleteMedia: "[skip ci] Delete “{{path}}”"
local_backend: true
media_folder: static/images
public_folder: /images
collections:
  - name: blog
    label: Blog
    folder: src/data/blog
    create: true
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    fields:
      - label: Template Key
        name: templateKey
        widget: hidden
        default: blog-page
      - label: Title
        name: title
        widget: string
      - label: Author
        name: author
        widget: string
      - label: Image
        name: image
        widget: image
      - label: Publish Date
        name: date
        widget: datetime
        default: ""
        date_format: DD.MM.YYYY
        time_format: "false"
      - label: Tags
        name: tags
        widget: list
        fields:
          - label: Tag
            name: tag
            widget: string
      - label: Description
        name: description
        widget: string
      - label: Body
        name: body
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - author
      - description
    view_filters: []
    view_groups: []
  - name: pages
    label: Pages
    files:
      - file: src/data/index.md
        label: Landing Page
        name: index
        fields:
          - label: Template Key
            name: templateKey
            widget: hidden
            default: index-page
          - label: Hero
            name: hero
            widget: object
            fields:
              - label: TitleUp
                name: titleUp
                widget: string
              - label: TitleDown
                name: titleDown
                widget: string
              - label: Image
                name: image
                widget: image
              - label: Description
                name: description
                widget: text
              - label: Button
                name: ctaButton
                widget: list
                fields:
                  - label: Text
                    name: text
                    widget: string
                  - label: Link
                    name: link
                    widget: string
          - label: Services
            name: services
            widget: object
            fields:
              - label: ServiceImage
                name: serviceImage
                widget: image
              - label: Tag
                name: tag
                widget: string
              - label: title
                name: title
                widget: string
              - label: Description
                name: description
                widget: text
              - label: Service
                name: service
                widget: list
                min: 3
                max: 6
                fields:
                  - label: Title
                    name: title
                    widget: string
                  - label: Logo
                    name: logo
                    widget: object
                    fields:
                      - label: Icon
                        name: icon
                        widget: icon
                        iconFamily: di
                      - label: BgColor
                        name: bgColor
                        widget: color
          - label: Testimonia
...