You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-06-12 22:57:38 +02:00
Apply linter
This commit is contained in:
@ -481,17 +481,15 @@ class Note extends BaseItem {
|
||||
return note;
|
||||
}
|
||||
|
||||
static async duplicateMultipleNotes(noteIds, options = null){
|
||||
/*
|
||||
if options.uniqueTitle is true, a unique title for the duplicated file will be assigned.
|
||||
*/
|
||||
static async duplicateMultipleNotes(noteIds, options = null) {
|
||||
// if options.uniqueTitle is true, a unique title for the duplicated file will be assigned.
|
||||
const ensureUniqueTitle = options && options.ensureUniqueTitle;
|
||||
|
||||
for(const noteId of noteIds){
|
||||
for (const noteId of noteIds) {
|
||||
const noteOptions = {};
|
||||
|
||||
//If ensureUniqueTitle is truthy, set the original note's name as root for the unique title.
|
||||
if(ensureUniqueTitle){
|
||||
// If ensureUniqueTitle is truthy, set the original note's name as root for the unique title.
|
||||
if (ensureUniqueTitle) {
|
||||
const originalNote = await Note.load(noteId);
|
||||
noteOptions.uniqueTitle = originalNote.title;
|
||||
}
|
||||
|
Reference in New Issue
Block a user