From a7d4a5c30d4089c407f04a3383617723a6935664 Mon Sep 17 00:00:00 2001 From: "aton.xia" Date: Thu, 29 Dec 2022 14:43:13 +0800 Subject: [PATCH] fix: address list not request --- apps/storefront/src/pages/address/Address.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/storefront/src/pages/address/Address.tsx b/apps/storefront/src/pages/address/Address.tsx index ef82cbc1..1815b5db 100644 --- a/apps/storefront/src/pages/address/Address.tsx +++ b/apps/storefront/src/pages/address/Address.tsx @@ -100,7 +100,9 @@ const Address = () => { const [isRequestLoading, setIsRequestLoading] = useState(false) const [addressFields, setAddressFields] = useState([]) const [countries, setCountries] = useState([]) - const [filterData, setFilterData] = useState | null>(null) + const [filterData, setFilterData] = useState>({ + search: '', + }) const companyId = role === 3 && isAgenting ? salesRepCompanyId : companyInfoId const hasAdminPermission = isB2BUser && (!role || (role === 3 && isAgenting)) @@ -293,7 +295,7 @@ const Address = () => { columnItems={[]} rowsPerPageOptions={[9, 18, 27]} getRequestList={getAddressList} - searchParams={filterData || {}} + searchParams={filterData} isCustomRender itemXs={isExtraLarge ? 3 : 4} requestLoading={setIsRequestLoading}