forked from ddrilling/asb_cloud_front
fix search method in admin permission page
This commit is contained in:
parent
7f1160587c
commit
fb0cc1637b
@ -28,7 +28,9 @@ const PermissionController = memo(() => {
|
||||
const filteredPermissions = useMemo(() => permissions.filter((permission) => permission && (!searchValue || [
|
||||
permission.name ?? '',
|
||||
permission.description ?? '',
|
||||
].join(' ').includes(searchValue.toLowerCase()))
|
||||
].join(' ')
|
||||
.toLowerCase()
|
||||
.includes(searchValue.toLowerCase()))
|
||||
), [permissions, searchValue])
|
||||
|
||||
const updateTable = useCallback(async () => invokeWebApiWrapperAsync(
|
||||
|
Loading…
Reference in New Issue
Block a user