Skip to content

TypeError: l.map is not a function #7240

@fThAbhishek-Pandey

Description

@fThAbhishek-Pandey

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: decap-cms-app@3.1.0-beta.2
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0

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
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions