decaporg/decap-cms

Error: Cannot resolve a DOM node from Slate node: {"text":""}

aathanor opened this issue · 1 comments

Describe the bug

To Reproduce

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: decap-cms@3.1.0-beta.4
  • Git provider: github
  • Browser version: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4.1 Safari/605.1.15

CMS configuration

backend:
  name: github
  repo: aathanor/antimaterie-z
  branch: main
  base_url: https://antimaterie.ro
  auth_endpoint: /api/auth
  auth_scope: repo
  open_authoring: true
  use_graphql: true
site_url: https://antimaterie.ro
publish_mode: editorial_workflow
media_folder: static/images/uploads
public_folder: /images/uploads
collections:
  - name: authors
    label: Authors
    label_singular: Author
    description: |
      Secțiune pentru administrare. Nu se poate modifica!"
    folder: content/authors
    create: false
    fields:
      - label: Name
        name: name
        widget: string
        hint: First and Last
      - label: Description
        name: description
        widget: markdown
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - name
      - name
      - description
    view_filters: []
    view_groups: []
  - name: flux
    label: Flux
    label_singular: Post
    description: >
      Postări scurte care apar în flux cronologic (cam ca pe Facebook).
      Recomandarea e ca tot ce trece de 200 de cuvinte să fie articol în
      secțiunea "Distilat"
    folder: content/flux
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    view_filters:
      - label: Posts With Index
        field: title
        pattern: "This is post #"
        id: "title__This is post #"
      - label: Posts Without Index
        field: title
        pattern: front matter post
        id: title__front matter post
      - label: Drafts
        field: draft
        pattern: true
        id: draft__true
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Drafts
        field: draft
        id: draft__undefined
    fields:
      - label: Titlu
        name: title
        widget: string
        tagname: h1
      - label: Data publicării
        name: date
        widget: datetime
        format: YYYY-MM-DD
        default: "{{now}}"
      - label: Autor
        name: author
        widget: relation
        collection: authors
        search_fields:
          - name
        value_field: name
      - label: Body
        name: body
        widget: markdown
        hint: Aici intră textul
    publish: true
    type: folder_based_collection
    sortable_fields:
      - commit_date
      - title
      - date
      - commit_author
  - name: distilat
    label: Distilat
    label_singular: Distilat
    description: >
      Articole de fond mai lungi (recomandarea e între 300 și 1000 de cuvinte).
      Tot ce e sub 200 de cuvinte ar trebui să fie postare în secțiunea "Flux"
    folder: content/distilat
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    summary: "{{title}} -- {{year}}/{{month}}/{{day}}"
    create: true
    view_filters:
      - label: Posts With Index
        field: title
        pattern: "This is post #"
        id: "title__This is post #"
      - label: Posts Without Index
        field: title
        pattern: front matter post
        id: title__front matter post
      - label: Drafts
        field: draft
        pattern: true
        id: draft__true
    view_groups:
      - label: Year
        field: date
        pattern: \d{4}
        id: date__\d{4}
      - label: Drafts
        field: draft
        id: draft__undefined
    fields:
      - label: Titlu
        name: title
        widget: string
        tagname: h1
      - label: Data publicării
        name: date
        widget: datetime
        format: YYYY-MM-DD
        default: "{{now}}"
      - label: Body
        name: body
        widget: 
...