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: sort tags in creating shortcut (#69)
STEVEN5d6df87af090
diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsxindex cadb09527..6bf5d1738 100644--- a/web/src/components/CreateShortcutDialog.tsx+++ b/web/src/components/CreateShortcutDialog.tsx@@ -152,6 +152,7 @@ interface MemoFilterInputerProps {const FilterInputer: React.FC<MemoFilterInputerProps> = (props: MemoFilterInputerProps) => {const { index, filter, handleFilterChange, handleFilterRemove } = props;+ const tags = Array.from(memoService.getState().tags);const { type } = filter;const [inputElements, setInputElements] = useState<JSX.Element>(<></>);@@ -185,12 +186,9 @@ const FilterInputer: React.FC<MemoFilterInputerProps> = (props: MemoFilterInputevalueElement = (<SelectorclassName="value-selector"- dataSource={memoService- .getState()- .tags.sort()- .map((t) => {- return { text: t, value: t };- })}+ dataSource={tags.sort().map((t) => {+ return { text: t, value: t };+ })}value={filter.value.value}handleValueChanged={handleValueChange}/>