Properly load entries when switching collections
This commit is contained in:
@ -571,7 +571,7 @@ Example usage:
|
||||
```javascript
|
||||
CMS.registerEventListener({
|
||||
name: 'prePublish',
|
||||
handler: ({ author, entry }) => console.log(JSON.stringify({ author, data: entry.get('data') })),
|
||||
handler: ({ author, entry }) => console.info(JSON.stringify({ author, data: entry.get('data') })),
|
||||
});
|
||||
```
|
||||
|
||||
|
@ -82,7 +82,7 @@ function EventBox({ title, cta }) {
|
||||
setLoading(false);
|
||||
})
|
||||
.catch(err => {
|
||||
console.log(err); // eslint-disable-line no-console
|
||||
console.error(err); // eslint-disable-line no-console
|
||||
// TODO: set state to show error message
|
||||
|
||||
setLoading(false);
|
||||
|
Reference in New Issue
Block a user