Skip to content

TypeError: Cannot read properties of undefined (reading 'get') #7554

@corealsoft

Description

@corealsoft

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: decap-cms@3.8.0
  • Git provider: git-gateway
  • Browser version: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36

CMS configuration

backend:
  name: git-gateway
  branch: main
media_folder: public/images/uploads
public_folder: /images/uploads
collections:
  - name: destinations
    label: Destinos
    folder: content/destinations
    create: true
    slug: "{{slug}}"
    fields:
      - label: Título
        name: title
        widget: string
      - label: Descripción
        name: description
        widget: text
      - label: Imagen Principal
        name: image
        widget: image
      - label: Galería de Imágenes
        name: gallery
        widget: list
        field:
          label: Imagen
          name: image
          widget: image
      - label: Rating
        name: rating
        widget: number
        value_type: float
        min: 1
        max: 5
        step: 0.1
      - label: Categoría
        name: category
        widget: select
        options:
          - Cultural
          - Naturaleza
          - Café
          - Urbano
          - Aventura
      - label: Municipio
        name: municipality
        widget: select
        options:
          - armenia
          - salento
          - filandia
          - circasia
          - quimbaya
          - montenegro
          - la-tebaida
          - calarca
          - cordoba
          - pijao
          - genova
          - buenavista
      - label: Tipos de Turismo
        name: tourismTypes
        widget: select
        multiple: true
        options:
          - naturaleza
          - aventura
          - cafe
          - bienestar
          - gastronomia
          - cultural
          - rural
      - label: Highlights
        name: highlights
        widget: list
        field:
          label: Highlight
          name: highlight
          widget: string
      - label: WhatsApp
        name: whatsapp
        widget: string
        hint: "Número de WhatsApp con código de país (ej: +573001234567)"
      - label: Latitud
        name: latitude
        widget: number
        value_type: float
      - label: Longitud
        name: longitude
        widget: number
        value_type: float
      - label: Dirección
        name: address
        widget: string
      - label: Precio Promedio
        name: averagePrice
        widget: string
        hint: "Ej: $50.000 - $100.000 COP"
      - label: Horarios
        name: schedule
        widget: text
      - label: Contacto Email
        name: email
        widget: string
        required: false
      - label: Sitio Web
        name: website
        widget: string
        required: false
      - label: Contenido
        name: body
        widget: markdown
      - label: Estado
        name: status
        widget: select
        options:
          - published
          - draft
        default: draft
      - label: Fecha de Publicación
        name: publishDate
        widget: datetime
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - publishDate
      - commit_author
      - description
    view_filters: []
    view_groups: []
  - name: experiences
    label: Experiencias
    folder: content/experiences
    create: true
    slug: "{{slug}}"
    fields:
      - label: Título
        name: title
        widget: string
      - label: Descripción Corta
        name: description
        widget: text
      - label: Imagen Principal
        name: image
        widget: image
      - label: Galería de Imágenes
        name: gallery
        widget: list
        field:
          label: Imagen
          name: image
          widget: image
      - label: Categoría
        name: category
        widget: select
        options:
          - Café
          - A
...

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