From 04f8f4d5a10ff09f2429ce4a9e64fd86d5a4907b Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Thu, 25 Aug 2022 10:09:01 +0800 Subject: [PATCH] fix: first data fetch when the page has initial filter conditions Fix the first data fetch when the page has sepcial initial filter, which is related with the search filters in the page, such as the initial filter has the quick search conditions. Change-Id: I6c285c28c67c097b9b1a4853958c4d1d669afd62 --- src/containers/List/index.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/containers/List/index.jsx b/src/containers/List/index.jsx index bbe958ff..758d53ad 100644 --- a/src/containers/List/index.jsx +++ b/src/containers/List/index.jsx @@ -33,7 +33,6 @@ import Notify from 'components/Notify'; import { checkTimeIn } from 'utils/time'; import checkItemPolicy from 'resources/skyline/policy'; import NotFound from 'components/Cards/NotFound'; -import { getTags } from 'components/MagicInput'; import { getPath, getLinkRender } from 'utils/route-map'; import styles from './index.less'; @@ -83,8 +82,7 @@ export default class BaseList extends React.Component { location.key === this.props.location.key ) { const params = this.initFilter; - const { tags = [] } = getTags(params, this.searchFilters); - if (!tags.length && !this.filterTimeKey) { + if (!this.filterTimeKey) { const { limit, page } = this.store.list; this.list.filters = {}; this.handleFetch({ ...params, limit, page }, true);