This commit is contained in:
mgabdev
2020-05-14 19:56:27 -04:00
parent 401a99a127
commit 8d452f0f6b
3 changed files with 6 additions and 9 deletions

View File

@@ -27,7 +27,7 @@ const debouncedSave = debounce((dispatch, getState) => {
api().put('/api/web/settings', { data })
.then(() => dispatch({ type: SETTING_SAVE }))
.catch(() => { /* */ })
}, 5000, { trailing: true })
}, 500, { trailing: true })
export function saveSettings() {
return (dispatch, getState) => debouncedSave(dispatch, getState)