fix(ui) - cards library reser search and pagination
This commit is contained in:
parent
ffbc8559d7
commit
c2db53a4b0
1 changed files with 6 additions and 1 deletions
|
|
@ -16,7 +16,12 @@ function MetricsLibraryModal(props: Props) {
|
|||
const [selectedList, setSelectedList] = useState([]);
|
||||
|
||||
useEffect(() => {
|
||||
metricStore.updateKey('page', 1)
|
||||
metricStore.updateKey('listView', true);
|
||||
|
||||
return () => {
|
||||
metricStore.updateKey('filter', { ...metricStore.filter, query: '' })
|
||||
}
|
||||
}, []);
|
||||
|
||||
const onSelectionChange = (list: any) => {
|
||||
|
|
@ -24,7 +29,7 @@ function MetricsLibraryModal(props: Props) {
|
|||
};
|
||||
|
||||
const onChange = ({ target: { value } }: any) => {
|
||||
metricStore.updateKey('metricsSearch', value)
|
||||
metricStore.updateKey('filter', { ...metricStore.filter, query: value })
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue