decaporg / decaporg/decap-cms

Replace "Entries_Failure" error with "0 entries" message

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

Description

**Is your feature request related to a problem? Please describe.**
In coming to grips with Netlify, I haven't added any entries to any collections yet. When I open the CMS, I'm met with a red API_Error alert, and the console shows an Entries_Failure error from the Promise reject.

**Describe the solution you'd like**
As collections may be left empty intentionally, a better solution would be a message either in line with the collection top heading or under it letting the user know it's empty. This is just a quality-of-life change, but something less jarring for new users.

**Describe alternatives you've considered**
I haven't attempted any alternatives yet, as this seems internal.

**Additional context**

_The console error in question_
![Desktop screenshot (1)](https://user-images.githubusercontent.com/6250214/59432995-93845b80-8db6-11e9-91f4-6fd5de00295d.png)

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.