Skip to content

Commit

Permalink
Notify when no notes exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Mar 12, 2022
1 parent 1200da6 commit bf172f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-zotero-desktop-connector",
"name": "Zotero Desktop Connector",
"version": "1.0.1",
"version": "1.0.2",
"minAppVersion": "0.12.0",
"description": "Insert citations, bibliographies, and notes directly from Zotero desktop.",
"author": "mgmeyers",
Expand Down
5 changes: 5 additions & 0 deletions src/exportNotes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export async function noteExportPrompt(database: Database) {

if (!notes) return;

if (!notes.length) {
new Notice("No notes found for selected items", 7000);
return;
}

const notesMarkdown: Record<string, string> = {};

Object.keys(notes).forEach((key) => {
Expand Down

0 comments on commit bf172f8

Please sign in to comment.