mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	small fixes
This commit is contained in:
		| @@ -419,12 +419,14 @@ async function saveLinks(note, content) { | ||||
|             && existingLink.name === foundLink.name); | ||||
|  | ||||
|         if (!existingLink) { | ||||
|             await new Attribute({ | ||||
|             const newLink = await new Attribute({ | ||||
|                 noteId: note.noteId, | ||||
|                 type: foundLink.name === 'externalLink' ? 'label' : 'relation', | ||||
|                 name: foundLink.name, | ||||
|                 value: foundLink.value, | ||||
|             }).save(); | ||||
|  | ||||
|             existingLinks.push(newLink); | ||||
|         } | ||||
|         else if (existingLink.isDeleted) { | ||||
|             existingLink.isDeleted = false; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user