mirror of
https://github.com/usememos/memos.git
synced 2025-03-19 12:10:08 +01: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
@ -71,7 +71,7 @@ const CreateShortcutDialog: React.FC<Props> = (props: Props) => {
|
|||||||
destroy();
|
destroy();
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleAddFilterBenClick = () => {
|
const handleAddFilterBtnClick = () => {
|
||||||
if (filters.length > 0) {
|
if (filters.length > 0) {
|
||||||
const lastFilter = filters[filters.length - 1];
|
const lastFilter = filters[filters.length - 1];
|
||||||
if (lastFilter.value.value === "") {
|
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")}
|
{t("filter.new-filter")}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user