forked from open-webui/open-webui
		
	fix: unfinished chat load error
This commit is contained in:
		
							parent
							
								
									edac6f4dbd
								
							
						
					
					
						commit
						ce4973becb
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -236,6 +236,9 @@ | |||
| 	const loadChat = async (id) => { | ||||
| 		const chat = await db.get('chats', id); | ||||
| 		if (chatId !== chat.id) { | ||||
| 			if (chat.messages.length > 0) { | ||||
| 				chat.messages.at(-1).done = true; | ||||
| 			} | ||||
| 			messages = chat.messages; | ||||
| 			title = chat.title; | ||||
| 			chatId = chat.id; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek