decaporg / decaporg/decap-cms

TypeError: Cannot destructure property 'url' of 'e.element.data' as it is undefined.

Open
#7,790 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**

I attempt to copy an article that I wrote else where , I had the article written on medium and it contained pictures and tried to paste it as a new post in the cms
**To Reproduce**
just copy an article from medium that contains media and try to paste it

**Expected behavior**
should paste normally with no problems

**Screenshots**

**Applicable Versions:**
- Decap CMS version: `decap-cms@3.12.2`
- Git provider: `git-gateway`
- Browser version: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36`

**CMS configuration**
```
backend:
name: git-gateway
branch: ThinkReview-Blog
repo: Thinkode/ThinkReview-Gitlab-Copilot-Extension-Website
media_folder: media/blog
public_folder: /media/blog
collections:
- name: blog
label: Blog Posts
folder: content/blog
create: true
slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
fields:
- label: Layout
name: layout
widget: hidden
default: blog
- label: Title
name: title
widget: string
- label: Publish Date
name: date
widget: datetime
- label: Featured Image
name: featured_image
widget: image
required: false
- label: Description
name: description
widget: text
required: false
- label: Tags
name: tags
widget: list
required: false
- label: Author
name: author
widget: string
default: Thinkode AI
required: false
- label: Draft
name: draft
widget: boolean
default: false
- label: Body
name: body
widget: markdown
publish: true
type: folder_based_collection
sortable_fields:
- field: commit_date
- field: title
- field: date
- field: author
- field: description
view_filters: []
view_groups: []
- name: docs
label: Documentation
folder: content/docs
create: true
slug: "{{slug}}"
fields:
- label: Title
name: title
widget: string
- label: Description
name: description
widget: text
required: false
- label: Category
name: category
widget: select
options:
- Setup
- Core Features
- Help
default: Setup
- label: Order
name: order
widget: number
default: 99
value_type: int
- label: Body
name: body
widget: markdown
publish: true
type: folder_based_collection
sortable_fields:
- field: commit_date
- field: title
- field: commit_author
- field: description
view_filters: []
view_groups: []
- name: pages
label: Pages
folder: content/pages
create: true
fields:
- label: Layout
name: layout
widget: hidden
default: page
- label: Title
name: title
widget: string
- label: Body
name: body
widget: markdown
publish: true
type: folder_based_collection
sortable_fields:
- field: commit_date
- field: title
- field: commit_author
view_filters: []
view_groups: []
publish_mode: simple
slug:
encoding: unicode
clean_accents: false
sanitize_replacement: "-"
isFetching: false
error: null

```

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.