Skip to content

Commit

Permalink
fix: Available slots not being fetched (#3180)
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio authored Sep 6, 2024
1 parent 0e852d9 commit 457ba2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export const CreateThirdPartyCollectionModal: FC<Props> = (props: Props) => {
onChange={handleCollectionIdChange}
/>
)}
{errorMessage ? <Message error tiny visible content={errorMessage} header={t('global.error_ocurred')} /> : null}
{errorMessage ? <Message error visible content={errorMessage} header={t('global.error_ocurred')} /> : null}
</ModalContent>
<ModalActions>
<Button primary disabled={!isSubmittable || isLoading} loading={isLoading}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function ThirdPartyCollectionDetailPage({
if (thirdParty && thirdParty.availableSlots === undefined && !isLoadingAvailableSlots) {
onFetchAvailableSlots(thirdParty.id)
}
}, [])
}, [thirdParty, isLoadingAvailableSlots, onFetchAvailableSlots])

useEffect(() => {
// update the state if the page query param changes
Expand Down Expand Up @@ -395,7 +395,6 @@ export default function ThirdPartyCollectionDetailPage({
isLoadingAvailableSlots,
totalItems,
page,
thirdParty,
handleSelectItemChange,
areAllSelected,
handleChangeStatus,
Expand Down

0 comments on commit 457ba2b

Please sign in to comment.