Explorar o código

don't overwrite name, keep url separate

Michael Möbius hai 6 meses
pai
achega
41bd16acbe
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/lib/components/chat/Messages/Citations.svelte

+ 1 - 1
src/lib/components/chat/Messages/Citations.svelte

@@ -54,7 +54,7 @@
 				}
 
 				if (id.startsWith('http://') || id.startsWith('https://')) {
-					source = { name: id };
+					source = { ..source, url: id };
 				}
 
 				const existingSource = acc.find((item) => item.id === id);