Fix/notification (#271)

* fix notification header config TP-1

* fix formattionn TP-1
This commit is contained in:
Aman Sethi
2023-04-21 13:29:46 +05:30
committed by GitHub Enterprise
parent 4ba1df5395
commit df0d6f08dc

View File

@@ -71,15 +71,11 @@ export const getNotifications =
export const notificationAction = (payload: INotificationAction[]) => (dispatch: AppDispatch) => {
const url = getApiUrl(ApiKeys.NOTIFICATION_ACTION);
return axiosInstance
.post(
url,
{
headers: {
showInSpecificComponents: ['Notifications'],
},
.post(url, payload, {
headers: {
showInSpecificComponents: ['Notifications'],
},
payload
)
})
.then(() => {
dispatch(addActionToNotifications(payload));
});