Skip to content

Commit 457ba2b

Browse files
fix: Available slots not being fetched (#3180)
1 parent 0e852d9 commit 457ba2b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/Modals/CreateThirdPartyCollectionModal/CreateThirdPartyCollectionModal.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export const CreateThirdPartyCollectionModal: FC<Props> = (props: Props) => {
204204
onChange={handleCollectionIdChange}
205205
/>
206206
)}
207-
{errorMessage ? <Message error tiny visible content={errorMessage} header={t('global.error_ocurred')} /> : null}
207+
{errorMessage ? <Message error visible content={errorMessage} header={t('global.error_ocurred')} /> : null}
208208
</ModalContent>
209209
<ModalActions>
210210
<Button primary disabled={!isSubmittable || isLoading} loading={isLoading}>

src/components/ThirdPartyCollectionDetailPage/ThirdPartyCollectionDetailPage.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export default function ThirdPartyCollectionDetailPage({
8080
if (thirdParty && thirdParty.availableSlots === undefined && !isLoadingAvailableSlots) {
8181
onFetchAvailableSlots(thirdParty.id)
8282
}
83-
}, [])
83+
}, [thirdParty, isLoadingAvailableSlots, onFetchAvailableSlots])
8484

8585
useEffect(() => {
8686
// update the state if the page query param changes
@@ -395,7 +395,6 @@ export default function ThirdPartyCollectionDetailPage({
395395
isLoadingAvailableSlots,
396396
totalItems,
397397
page,
398-
thirdParty,
399398
handleSelectItemChange,
400399
areAllSelected,
401400
handleChangeStatus,

0 commit comments

Comments
 (0)