mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	Merge pull request #3736 from dymani/master
Fix typo in backend API createOrUpdateLauncher()
This commit is contained in:
		@@ -475,7 +475,7 @@ function BackendScriptApi(currentNote, apiParams) {
 | 
				
			|||||||
        const noteId = 'al_' + opts.id;
 | 
					        const noteId = 'al_' + opts.id;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        const launcherNote =
 | 
					        const launcherNote =
 | 
				
			||||||
            becca.getNote(opts.id) ||
 | 
					            becca.getNote(noteId) ||
 | 
				
			||||||
            specialNotesService.createLauncher({
 | 
					            specialNotesService.createLauncher({
 | 
				
			||||||
                noteId: noteId,
 | 
					                noteId: noteId,
 | 
				
			||||||
                parentNoteId: parentNoteId,
 | 
					                parentNoteId: parentNoteId,
 | 
				
			||||||
@@ -514,7 +514,7 @@ function BackendScriptApi(currentNote, apiParams) {
 | 
				
			|||||||
        if (opts.icon) {
 | 
					        if (opts.icon) {
 | 
				
			||||||
            launcherNote.setLabel('iconClass', `bx ${opts.icon}`);
 | 
					            launcherNote.setLabel('iconClass', `bx ${opts.icon}`);
 | 
				
			||||||
        } else {
 | 
					        } else {
 | 
				
			||||||
            launcherNote.removeLabel('keyboardShortcut');
 | 
					            launcherNote.removeLabel('iconClass');
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {note: launcherNote};
 | 
					        return {note: launcherNote};
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user