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
mobile: fix navigating to tags
ammarahm-edc10f518e3a53
diff --git a/apps/mobile/app/components/list-items/tag/index.js b/apps/mobile/app/components/list-items/tag/index.jsindex 740ef4ab9..194937965 100644--- a/apps/mobile/app/components/list-items/tag/index.js+++ b/apps/mobile/app/components/list-items/tag/index.js@@ -28,6 +28,7 @@ import { IconButton } from "../../ui/icon-button";import { PressableButton } from "../../ui/pressable";import Heading from "../../ui/typography/heading";import Paragraph from "../../ui/typography/paragraph";+import { db } from "../../../common/database";const TagItem = React.memo(({ item, index }) => {@@ -35,6 +36,7 @@ const TagItem = React.memo(const onPress = () => {TaggedNotes.navigate(item, true);};+ const relations = db.relations.from(item, "note");return (<PressableButton@@ -75,10 +77,10 @@ const TagItem = React.memo(marginTop: 5}}>- {item && item.noteIds.length && item.noteIds.length > 1- ? item.noteIds.length + " notes"- : item.noteIds.length === 1- ? item.noteIds.length + " note"+ {relations.length && relations.length > 1+ ? relations.length + " notes"+ : relations.length === 1+ ? relations.length + " note": null}</Paragraph></View>