Skip to content

Commit 2d737aa

Browse files
committed
refactor: fixed data updation in redux
1 parent 4c4db14 commit 2d737aa

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/Notifications/data/thunks.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,7 @@ export const fetchAppsNotificationCount = () => (
6666
dispatch(fetchNotificationsCountRequest());
6767
const data = await getNotificationCounts();
6868
const normalisedData = normalizeNotificationCounts((camelCaseObject(data)));
69-
dispatch(fetchNotificationsCountSuccess({
70-
...normalisedData,
71-
countByAppName: data.countByAppName,
72-
count: data.count,
73-
showNotificationsTray: data.showNotificationsTray,
74-
}));
69+
dispatch(fetchNotificationsCountSuccess({ ...normalisedData }));
7570
} catch (error) {
7671
if (getHttpErrorStatus(error) === 403) {
7772
dispatch(fetchNotificationsCountDenied());

0 commit comments

Comments
 (0)