mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-03 12:47:44 +08:00
fix: bug
This commit is contained in:
parent
c1d71ec996
commit
582f1d7ef8
@ -109,8 +109,8 @@ export const useMenuSearch = (props: { children: any[]; showType?: boolean; hide
|
||||
const lowerSearchValue = searchValue.toLocaleLowerCase();
|
||||
return items.filter(
|
||||
(item) =>
|
||||
(item.label || item.title) &&
|
||||
String(item.label || item.title)
|
||||
(item.title || item.label) &&
|
||||
String(item.title || item.label)
|
||||
.toLocaleLowerCase()
|
||||
.includes(lowerSearchValue),
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user