Don't show error notice for in app announcements
[MAILPOET-1525]
This commit is contained in:
@@ -20,15 +20,7 @@ class InAppAnnouncement extends React.Component {
|
|||||||
endpoint: 'settings',
|
endpoint: 'settings',
|
||||||
action: 'set',
|
action: 'set',
|
||||||
data: { in_app_announcements: settings },
|
data: { in_app_announcements: settings },
|
||||||
}).then(() => (this.setState({ announcementsSettings: settings }))
|
}).always(() => (this.setState({ announcementsSettings: settings })));
|
||||||
).fail((response) => {
|
|
||||||
if (response.errors.length > 0) {
|
|
||||||
MailPoet.Notice.error(
|
|
||||||
response.errors.map(error => error.message),
|
|
||||||
{ scroll: true }
|
|
||||||
);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Reference in New Issue
Block a user