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
fix: shortcut edit button opens create dialog instead of edit dialog
Stevene7605d90da1b
diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsxindex 5d4675c3d..47d440499 100644--- a/web/src/components/CreateShortcutDialog.tsx+++ b/web/src/components/CreateShortcutDialog.tsx@@ -37,10 +37,14 @@ function CreateShortcutDialog({ open, onOpenChange, shortcut: initialShortcut, oconst isCreating = shortcut.name === "";useEffect(() => {- if (shortcut.name) {- setShortcut(shortcut);- }- }, [shortcut.name, shortcut.title, shortcut.filter]);+ setShortcut(+ create(ShortcutSchema, {+ name: initialShortcut?.name || "",+ title: initialShortcut?.title || "",+ filter: initialShortcut?.filter || "",+ }),+ );+ }, [initialShortcut]);const onShortcutTitleChange = (e: React.ChangeEvent<HTMLInputElement>) => {setPartialState({