Skip to content

fix(widget-list): remove items from single field lists that have metadata - #8081

Merged
martinjagodic merged 4 commits into
decaporg:mainfrom
salamca:fix/list-remove-single-field-metadata
Nov 17, 2026
Merged

martinjagodic merged 4 commits into
decaporg:mainfrom
salamca:fix/list-remove-single-field-metadata

Conversation

@salamca

@salamca salamca commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #8080

Removing an item from a list with a single field threw Invalid keyPath once the list had metadata, which the relation widget provides for saved values. The metadata path for single-field lists was a plain string; it's now wrapped in an array, as removeIn expects.

Test plan

  • New unit test removes an item from a single-field list that has metadata. It fails with Invalid keyPath without the fix.
  • The list and relation widget tests pass, and ESLint and Prettier are clean.
  • Tried in a real site: removing items from a list of relations now works.

Checklist

image

@salamca
salamca requested a review from a team as a code owner November 16, 2026 17:45
@netlify

netlify Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for decap-cms ready!

Name Link
🔨 Latest commit 6b2532c
🔍 Latest deploy log https://app.netlify.com/projects/decap-cms/deploys/6afc396a3b798f3f0fec990f
😎 Deploy Preview https://deploy-preview-8081--decap-cms.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@martinjagodic
martinjagodic enabled auto-merge (squash) November 17, 2026 09:11
@martinjagodic
martinjagodic merged commit 0ec07a0 into decaporg:main Nov 17, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List with a single relation field: removing an item throws Invalid keyPath

2 participants