Remove notification for failing to fetch JSON feed

pull/4600/head
Alirie Gray 2018-10-15 16:17:35 -07:00
parent 85cb48099b
commit 16f2758265
2 changed files with 0 additions and 9 deletions

View File

@ -230,11 +230,6 @@ export const notifyCurrentOrgDeleted = (): Notification => ({
message: 'Your current organization was deleted.',
})
export const notifyJSONFeedFailed = (url: string): Notification => ({
...defaultErrorNotification,
message: `Failed to fetch JSON Feed for News Feed from '${url}'`,
})
// Chronograf Admin Notifications
// ----------------------------------------------------------------------------
export const notifyMappingDeleted = (

View File

@ -4,9 +4,6 @@ import {Dispatch} from 'redux'
import {fetchJSONFeed as fetchJSONFeedAJAX} from 'src/status/apis'
import {notify} from 'src/shared/actions/notifications'
import {notifyJSONFeedFailed} from 'src/shared/copy/notifications'
import {JSONFeedData} from 'src/types'
export enum ActionTypes {
@ -72,6 +69,5 @@ export const fetchJSONFeedAsync = (url: string) => async (
} catch (error) {
console.error(error)
dispatch(fetchJSONFeedFailed())
dispatch(notify(notifyJSONFeedFailed(url)))
}
}