Skip to content

Error: Cannot find a descendant at path [7,0,0,0,2] in node: {"children":[{"type":"paragraph","ch... #6993

@nanqic

Description

@nanqic

Describe the bug
when edit,I press Shift+Enter , then
Error
There's been an error - please open an issue on GitHub.
To Reproduce

Expected behavior

Screenshots

Applicable Versions:

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

CMS configuration

backend:
  name: git-gateway
  branch: master
media_folder: static/f/up
public_folder: /f/up
collections:
  - name: posts
    label: Posts
    label_singular: Post
    description: |
      发布学习小组共修通知.
    folder: content/posts
    extension: md
    format: frontmatter
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    sortable_fields:
      - date
      - commit_date
      - title
      - commit_author
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Tags
        field: tags
        id: tags__undefined
    fields:
      - label: Title
        name: title
        widget: string
        tagname: h1
      - label: Publish Date
        name: date
        widget: datetime
        dateFormat: YYYY-MM-DD
        timeFormat: HH:mm:ss
        format: YYYY-MM-DD HH:mm:ssZ
        date_format: YYYY-MM-DD
        time_format: HH:mm:ss
      - label: Categories
        name: categories
        widget: list
        default:
          - 慧灯禅修班
      - label: Tags
        name: tags
        widget: list
        default:
          - 201x届
      - label: Attachments (Once uploaded/selected, you can copy the link from preview
          panel to body windown below)
        name: attachments
        widget: file
        required: false
        media_library:
          config:
            multiple: true
      - label: Body
        name: body
        widget: markdown
        hint: Main content goes here.
    publish: true
    type: folder_based_collection
    view_filters: []
publish_mode: simple
slug:
  encoding: unicode
  clean_accents: false
  sanitize_replacement: "-"
isFetching: false
error: null

Additional context

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