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 aliased tag name not showing in manage tags sheet
ammarahm-edb54ca08fc8c0
diff --git a/apps/mobile/app/components/sheets/manage-tags/index.js b/apps/mobile/app/components/sheets/manage-tags/index.jsindex ced92f6a2..4cb5f0e47 100644--- a/apps/mobile/app/components/sheets/manage-tags/index.js+++ b/apps/mobile/app/components/sheets/manage-tags/index.js@@ -240,7 +240,6 @@ const TagItem = ({ tag, notes, setNotes }) => {Navigation.queueRoutesForUpdate();}, 1);};-return (<PressableButtoncustomStyle={{@@ -275,7 +274,7 @@ const TagItem = ({ tag, notes, setNotes }) => {: "checkbox-blank-circle-outline"}/>- <Paragraph size={SIZE.sm}>{"#" + tag.title}</Paragraph>+ <Paragraph size={SIZE.sm}>{"#" + tag.alias}</Paragraph></PressableButton>);};diff --git a/apps/mobile/app/hooks/use-actions.js b/apps/mobile/app/hooks/use-actions.jsindex 70da564bf..6307cbfae 100644--- a/apps/mobile/app/hooks/use-actions.js+++ b/apps/mobile/app/hooks/use-actions.js@@ -384,11 +384,12 @@ export const useActions = ({ close = () => null, item }) => {positivePress: async (value) => {if (!value || value === "" || value.trimStart().length == 0) return;await db.tags.rename(item.id, db.tags.sanitize(value));- setImmediate(() => {+ setTimeout(() => {useTagStore.getState().setTags();useMenuStore.getState().setMenuPins();Navigation.queueRoutesForUpdate();- });+ useRelationStore.getState().update();+ }, 1);},input: true,defaultValue: alias,