Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: update fetch tags
Steven7ef125e3af33
diff --git a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx b/web/src/components/MemoEditor/ActionButton/TagSelector.tsxindex 72e5a60be..f9cbbd97b 100644--- a/web/src/components/MemoEditor/ActionButton/TagSelector.tsx+++ b/web/src/components/MemoEditor/ActionButton/TagSelector.tsx@@ -1,4 +1,5 @@import { IconButton } from "@mui/joy";+import { useEffect } from "react";import Icon from "@/components/Icon";import OverflowTip from "@/components/kit/OverflowTip";import { useTagStore } from "@/store/module";@@ -12,6 +13,16 @@ const TagSelector = (props: Props) => {const tagStore = useTagStore();const tags = tagStore.state.tags;+ useEffect(() => {+ (async () => {+ try {+ await tagStore.fetchTags();+ } catch (error) {+ // do nothing.+ }+ })();+ }, []);+return (<IconButton className="relative group flex flex-row justify-center items-center p-1 w-auto h-auto mr-1 select-none rounded cursor-pointer text-gray-600 dark:text-gray-400 hover:bg-gray-300 dark:hover:bg-zinc-800 hover:shadow"><Icon.Hash className="w-5 h-5 mx-auto" />