Skip to content

Commit 21891f2

Browse files
committed
fix: bug while creating a new template tag
1 parent 17869fe commit 21891f2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/utils/tags.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export const getAnyTagWithTitle = async (title: string): Promise<Tag> => {
2323
}
2424

2525
const tag = await joplin.data.post(["tags"], null, { title: title });
26-
return tag.id;
26+
return {
27+
id: tag.id,
28+
title: tag.title
29+
};
2730
}
2831

2932
export const getAllNotesWithTag = async (tagId: string): Promise<Note[]> => {

0 commit comments

Comments
 (0)