mobile: fix aliased tag name not showing in manage

tags sheet
This commit is contained in:
ammarahm-ed
2023-06-06 18:12:32 +05:00
parent 2be801ba3b
commit b54ca08fc8
2 changed files with 4 additions and 4 deletions

View File

@@ -240,7 +240,6 @@ const TagItem = ({ tag, notes, setNotes }) => {
Navigation.queueRoutesForUpdate();
}, 1);
};
return (
<PressableButton
customStyle={{
@@ -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>
);
};

View File

@@ -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,