forked from open-webui/open-webui
		
	fix: image settings save issue
This commit is contained in:
		
							parent
							
								
									7cef008b44
								
							
						
					
					
						commit
						cd92cf0da5
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -116,11 +116,13 @@ | ||||||
| 	class="flex flex-col h-full justify-between space-y-3 text-sm" | 	class="flex flex-col h-full justify-between space-y-3 text-sm" | ||||||
| 	on:submit|preventDefault={async () => { | 	on:submit|preventDefault={async () => { | ||||||
| 		loading = true; | 		loading = true; | ||||||
|  | 
 | ||||||
|  | 		if (imageGenerationEngine === 'openai') { | ||||||
| 			await updateOpenAIKey(localStorage.token, OPENAI_API_KEY); | 			await updateOpenAIKey(localStorage.token, OPENAI_API_KEY); | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		await updateDefaultImageGenerationModel(localStorage.token, selectedModel); | 		await updateDefaultImageGenerationModel(localStorage.token, selectedModel); | ||||||
| 
 | 
 | ||||||
| 		await updateDefaultImageGenerationModel(localStorage.token, selectedModel); |  | ||||||
| 		await updateImageSize(localStorage.token, imageSize).catch((error) => { | 		await updateImageSize(localStorage.token, imageSize).catch((error) => { | ||||||
| 			toast.error(error); | 			toast.error(error); | ||||||
| 			return null; | 			return null; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek