Skip to content

armgit / memos

Public Imported from GitHub
0

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.

fix: function name typo (#1148)

Xiang Jaywhenc24b7097fa0a
diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsx
index 963543443..b93e26fb7 100644
--- a/web/src/components/CreateShortcutDialog.tsx
+++ b/web/src/components/CreateShortcutDialog.tsx
@@ -71,7 +71,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
destroy();
};
- const handleAddFilterBenClick = () => {
+ const handleAddFilterBtnClick = () => {
if (filters.length > 0) {
const lastFilter = filters[filters.length - 1];
if (lastFilter.value.value === "") {
@@ -131,7 +131,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
/>
);
})}
- <div className="create-filter-btn" onClick={handleAddFilterBenClick}>
+ <div className="create-filter-btn" onClick={handleAddFilterBtnClick}>
{t("filter.new-filter")}
</div>
</div>