From fb0cc1637bf1e5329a3edd86448c8eb3dc86d427 Mon Sep 17 00:00:00 2001 From: ngfrolov Date: Wed, 15 Jun 2022 14:31:12 +0500 Subject: [PATCH] fix search method in admin permission page --- src/pages/AdminPanel/PermissionController.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/AdminPanel/PermissionController.jsx b/src/pages/AdminPanel/PermissionController.jsx index 50fe296..c232fe0 100755 --- a/src/pages/AdminPanel/PermissionController.jsx +++ b/src/pages/AdminPanel/PermissionController.jsx @@ -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(