decap-cms
decap-cms copied to clipboard
fix(7281): remove the string "DRAFT_MEDIA_FILES"
Summary
This fixes #7281.
I simply removed the string DRAFT_MEDIA_FILES from the return value of selectMediaFolder and the issue disappeared.
I have no idea why this string existed in the first place, but i highly advise that someone with more insight takes a look at this PR in case it breaks anything.
Test plan
I updated the corresponding test to reflect how i think this should work.
npm run test doesn't show any failures.
Checklist
Please add a x inside each checkbox:
- [x] I have read the contribution guidelines.
This is currently blocking me. Would love to see it merged. 🙏🏻
This is a blocker for me as well currently. Would love to see it merged!