Fix/notification (#271)
* fix notification header config TP-1 * fix formattionn TP-1
This commit is contained in:
committed by
GitHub Enterprise
parent
4ba1df5395
commit
df0d6f08dc
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user