Skip to content

Commit

Permalink
Fixed to use correct prop to be used as title of new note
Browse files Browse the repository at this point in the history
  • Loading branch information
gravypower committed Apr 19, 2021
1 parent 380281f commit 08b9cc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QuickLinksPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = {
const from = completion.from || data.from;
from.ch -= 2;

const response = await context.postMessage({command: 'createNote', prefix: prefix, todo: todo});
const response = await context.postMessage({command: 'createNote', title: prefix, todo: todo});
cm.replaceRange(`[${prefix}](:/${response.newNote.id})`, from, cm.getCursor(), "complete");
},
};
Expand Down

0 comments on commit 08b9cc2

Please sign in to comment.