From 902502837d2eb343b95084e639e774eaec452876 Mon Sep 17 00:00:00 2001 From: sylenien Date: Mon, 4 Jul 2022 13:01:43 +0200 Subject: [PATCH] fix(ui): rm unneeded api call --- .../components/shared/LiveSessionList/LiveSessionList.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx index 977fa5edd..99614b32a 100644 --- a/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx +++ b/frontend/app/components/shared/LiveSessionList/LiveSessionList.tsx @@ -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));