mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-23 19:49:56 +01:00
mobile: fix aliased tag name not showing in manage
tags sheet
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user