fix(ui): rm unneeded api call
This commit is contained in:
parent
dc9d2712f2
commit
902502837d
1 changed files with 1 additions and 5 deletions
|
|
@ -7,7 +7,6 @@ import withPermissions from 'HOCs/withPermissions'
|
|||
import { KEYS } from 'Types/filter/customFilter';
|
||||
import { applyFilter } from 'Duck/liveSearch';
|
||||
import { FilterKey } from 'App/types/filter/filterType';
|
||||
import { fetchList as fetchMetadata } from 'Duck/customField';
|
||||
import { addFilterByKeyAndValue, updateCurrentPage } from 'Duck/liveSearch';
|
||||
import Select from 'Shared/Select';
|
||||
import SortOrderButton from 'Shared/SortOrderButton';
|
||||
|
|
@ -32,11 +31,10 @@ interface Props {
|
|||
metaList: any,
|
||||
sort: any,
|
||||
total: number,
|
||||
fetchMetadata: () => void,
|
||||
}
|
||||
|
||||
function LiveSessionList(props: Props) {
|
||||
const { loading, metaListLoading, filter, list, currentPage, total, metaList = [], sort, fetchMetadata } = props;
|
||||
const { loading, metaListLoading, filter, list, currentPage, total, metaList = [], sort } = props;
|
||||
var timeoutId: any;
|
||||
const { filters } = filter;
|
||||
const hasUserFilter = filters.map((i: any) => i.key).includes(KEYS.USERID);
|
||||
|
|
@ -74,7 +72,6 @@ function LiveSessionList(props: Props) {
|
|||
// }, [filters, list]);
|
||||
|
||||
useEffect(() => {
|
||||
fetchMetadata();
|
||||
props.applyFilter({ ...filter});
|
||||
timeout();
|
||||
return () => {
|
||||
|
|
@ -185,6 +182,5 @@ export default withPermissions(['ASSIST_LIVE'])(connect(
|
|||
applyFilter,
|
||||
addFilterByKeyAndValue,
|
||||
updateCurrentPage,
|
||||
fetchMetadata,
|
||||
}
|
||||
)(LiveSessionList));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue