mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	fix(react/dialogs): undelete note not working
This commit is contained in:
		| @@ -135,8 +135,7 @@ function DeletedNoteLink({ change, setShown }: { change: RecentChangeRow, setSho | |||||||
|             <span className="note-title">{change.current_title}</span> |             <span className="note-title">{change.current_title}</span> | ||||||
|               |               | ||||||
|             (<a href="javascript:" |             (<a href="javascript:" | ||||||
|                 onClick={() => { |                 onClick={async () => { | ||||||
|                     async () => { |  | ||||||
|                     const text = t("recent_changes.confirm_undelete"); |                     const text = t("recent_changes.confirm_undelete"); | ||||||
|  |  | ||||||
|                     if (await dialog.confirm(text)) { |                     if (await dialog.confirm(text)) { | ||||||
| @@ -149,7 +148,6 @@ function DeletedNoteLink({ change, setShown }: { change: RecentChangeRow, setSho | |||||||
|                             activeContext.setNote(change.noteId); |                             activeContext.setNote(change.noteId); | ||||||
|                         } |                         } | ||||||
|                     } |                     } | ||||||
|                     } |  | ||||||
|                 }}> |                 }}> | ||||||
|                 {t("recent_changes.undelete_link")}) |                 {t("recent_changes.undelete_link")}) | ||||||
|             </a> |             </a> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user