static-cms icon indicating copy to clipboard operation
static-cms copied to clipboard

TypeError: v.map is not a function

Open zakkyna opened this issue 6 months ago • 0 comments

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Static CMS version: @staticcms/[email protected]
  • Git provider: proxy
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

CMS configuration

locale: en
site_url: https://senayaninovasidigital.com/
logo_url: https://senayaninovasidigital.com/logo.svg
local_backend: true
backend:
  name: proxy
  repo: zakkyna/senayaninovasidigital
  commit_messages:
    create: Create {{collection}} "{{slug}}"
    update: Update {{collection}} "{{slug}}"
    delete: Delete {{collection}} "{{slug}}"
    uploadMedia: Upload "{{path}}"
    deleteMedia: Delete "{{path}}"
  proxy_url: http://localhost:8081/api/v1
search: true
media_folder: src/assets
public_folder: /src/assets
media_library:
  max_file_size: 2012000
  folder_support: true
collections:
  - name: page
    identifier_field: name
    folder: src/content/page
    label: Pages
    format: frontmatter
    extension: mdx
    icon: page
    create: true
    editor:
      preview: false
      frame: false
    fields:
      - label: Title
        name: title
        widget: string
        pattern:
          - .{5,}
          - Must have at least 20 characters
      - label: Description (SEO)
        name: description
        widget: text
        pattern:
          - .{10,}
          - Must have at least 10 characters
      - label: Hero Intro
        name: intro
        widget: text
        required: false
      - label: Body
        name: body
        widget: markdown
        required: false
        toolbar_buttons:
          main:
            - bold
            - italic
            - strikethrough
            - code
            - font
            - blockquote
            - unordered-list
            - ordered-list
            - decrease-indent
            - increase-indent
            - label: Insert
              groups:
                - items:
                    - blockquote
                    - code-block
                - items:
                    - image
                    - file-link
        show_raw: true
        media_library:
          max_file_size: 2012000
          folder_support: true
      - name: hero_buttons
        label: Hero Buttons
        label_singular: Button
        widget: list
        collapsed: true
        summary: "{{fields.label}} | {{fields.href}}"
        fields:
          - label: Label
            name: label
            widget: string
          - label: Href
            name: href
            widget: string
          - name: color
            label: surface
            multiple: false
            widget: relation
            collection: config
            file: style
            search_fields:
              - surface.*.name
            display_fields:
              - surface.*.name
            value_field: surface.*.class
            options_length: 50
            required: false
          - name: icon
            label: Icon
            widget: relation
            collection: config
            required: false
            file: style
            search_fields:
              - icons.*.name
            display_fields:
              - icons.*.name
            options_length: 50
            value_field: icons.*.icon
          - name: icon_only
            label: Icon Only
            widget: boolean
            required: false
          - label: Class
            name: class_name
            widget: string
            required: false
        required: false
      - name: blocks
        label: Page Builder Blocks
        label_singular: block
        required: false
        widget: list
        collapsed: true
        types:
          - name: gallery
            label: Gallery
            widget: object
            collapsed: true
            summary: "{{fields.title}}"
            fields:
              - label: Component
                name: component
...

zakkyna avatar Aug 02 '24 15:08 zakkyna