QualificationsPage: search by code and name
This commit is contained in:
parent
715c6a7e67
commit
2d2ab01497
|
@ -3,8 +3,8 @@ import { useLocation } from 'react-router-dom';
|
|||
import clsx from 'clsx';
|
||||
import { Route } from 'config/routing';
|
||||
import { Route as NavRoute } from './components/Nav/types';
|
||||
import { useTheme } from '@material-ui/core/styles';
|
||||
|
||||
import { useTheme } from '@material-ui/core/styles';
|
||||
import {
|
||||
SwipeableDrawer,
|
||||
DrawerProps,
|
||||
|
|
|
@ -18,7 +18,10 @@ const useQualifications = (
|
|||
sort: [sort],
|
||||
limit,
|
||||
filter: {
|
||||
nameIEQ: '%' + search + '%',
|
||||
or: {
|
||||
nameIEQ: '%' + search + '%',
|
||||
codeIEQ: '%' + search + '%',
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
|
Reference in New Issue