mirror of
https://github.com/usememos/memos.git
synced 2025-03-04 17:52:18 +08:00
fix: function name typo (#1148)
fixed function name typo “handleAddFilterBenClick” -> "handleAddFilterBtnClick" [#1147 ](https://github.com/usememos/memos/issues/1147)
This commit is contained in:
parent
cc23d5cafe
commit
c24b7097fa
1 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue