A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix: show tag alias before tag title
thecodrr93edbecff347
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 24a65ec6e..29c664c9d 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -78,17 +78,20 @@ function Note(props) {icon={Icon.Notebook}/>)}- {note.tags.slice(0, 2).map((tag) => (- <IconTag- text={tag}- icon={Icon.Tag}- onClick={() => {- const tagId = db.tags.tag(tag)?.id;- if (!tagId) return showToast("Tag not found.");- navigate(`/tags/${tagId}`);- }}- />- ))}+ {note.tags.slice(0, 2).map((tag) => {+ const tagItem = db.tags.tag(tag);+ if (!tagItem) return null;+ return (+ <IconTag+ text={tagItem.alias || tagItem.title}+ icon={Icon.Tag}+ onClick={() => {+ if (!tagItem.id) return showToast("Tag not found.");+ navigate(`/tags/${tagItem.id}`);+ }}+ />+ );+ })}</Flex>)}