Change web client settings to be saved earlier and more often (#34074)
This commit is contained in:
		
					parent
					
						
							
								8cf27d0fbb
							
						
					
				
			
			
				commit
				
					
						00dbefdbbf
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -29,7 +29,7 @@ const debouncedSave = debounce((dispatch, getState) => { | |||
|   api().put('/api/web/settings', { data }) | ||||
|     .then(() => dispatch({ type: SETTING_SAVE })) | ||||
|     .catch(error => dispatch(showAlertForError(error))); | ||||
| }, 5000, { trailing: true }); | ||||
| }, 2000, { leading: true, trailing: true }); | ||||
| 
 | ||||
| export function saveSettings() { | ||||
|   return (dispatch, getState) => debouncedSave(dispatch, getState); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue