Fix mark as read in notifications to be saved immediately (#14907)
* Fix mark as read in notifications to be saved immediately * fix code style
This commit is contained in:
parent
65136600e3
commit
bec8b12bb5
3 changed files with 9 additions and 3 deletions
|
@ -100,8 +100,12 @@ export function submitMarkersSuccess({ home, notifications }) {
|
|||
};
|
||||
};
|
||||
|
||||
export function submitMarkers() {
|
||||
return (dispatch, getState) => debouncedSubmitMarkers(dispatch, getState);
|
||||
export function submitMarkers(params = {}) {
|
||||
const result = (dispatch, getState) => debouncedSubmitMarkers(dispatch, getState);
|
||||
if (params.immediate === true) {
|
||||
debouncedSubmitMarkers.flush();
|
||||
}
|
||||
return result;
|
||||
};
|
||||
|
||||
export const fetchMarkers = () => (dispatch, getState) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue