Skip to content

Commit

Permalink
fix: address list not request
Browse files Browse the repository at this point in the history
  • Loading branch information
b3aton committed Dec 29, 2022
1 parent 28b53bb commit a7d4a5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apps/storefront/src/pages/address/Address.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ const Address = () => {
const [isRequestLoading, setIsRequestLoading] = useState(false)
const [addressFields, setAddressFields] = useState<CustomFieldItems[]>([])
const [countries, setCountries] = useState<CountryProps[]>([])
const [filterData, setFilterData] = useState<Partial<FilterSearchProps> | null>(null)
const [filterData, setFilterData] = useState<Partial<FilterSearchProps>>({
search: '',
})

const companyId = role === 3 && isAgenting ? salesRepCompanyId : companyInfoId
const hasAdminPermission = isB2BUser && (!role || (role === 3 && isAgenting))
Expand Down Expand Up @@ -293,7 +295,7 @@ const Address = () => {
columnItems={[]}
rowsPerPageOptions={[9, 18, 27]}
getRequestList={getAddressList}
searchParams={filterData || {}}
searchParams={filterData}
isCustomRender
itemXs={isExtraLarge ? 3 : 4}
requestLoading={setIsRequestLoading}
Expand Down

0 comments on commit a7d4a5c

Please sign in to comment.