@itcase/ui 1.8.173 → 1.8.174
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -98,7 +98,13 @@ function NotificationsProvider(props) {
|
|
|
98
98
|
common.axiosInstanceITCase.responseErrorHandler.loggerManager = {
|
|
99
99
|
log: (responseError) => {
|
|
100
100
|
if (responseError.message) {
|
|
101
|
+
// prevent from showing many network errors
|
|
102
|
+
const errorListToDedupe = ['network'];
|
|
103
|
+
const id = errorListToDedupe.includes(responseError.key)
|
|
104
|
+
? responseError.key
|
|
105
|
+
: undefined;
|
|
101
106
|
showNotification({
|
|
107
|
+
id: id,
|
|
102
108
|
title: responseError.message,
|
|
103
109
|
status: 'error',
|
|
104
110
|
closeByTime: 4000,
|
|
@@ -96,7 +96,13 @@ function NotificationsProvider(props) {
|
|
|
96
96
|
axiosInstanceITCase.responseErrorHandler.loggerManager = {
|
|
97
97
|
log: (responseError) => {
|
|
98
98
|
if (responseError.message) {
|
|
99
|
+
// prevent from showing many network errors
|
|
100
|
+
const errorListToDedupe = ['network'];
|
|
101
|
+
const id = errorListToDedupe.includes(responseError.key)
|
|
102
|
+
? responseError.key
|
|
103
|
+
: undefined;
|
|
99
104
|
showNotification({
|
|
105
|
+
id: id,
|
|
100
106
|
title: responseError.message,
|
|
101
107
|
status: 'error',
|
|
102
108
|
closeByTime: 4000,
|