Skip to content
Merged

d < m #841

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,13 @@ import BlockLoader from '../../elements/block-loader/BlockLoader';
import BlockShowcase from '../../elements/block-showcase/BlockShowcase';
import useSetProgress from '../../../../dashboard/hooks/useSetProgress';
import useTranslate from '../../../../dashboard/hooks/useTranslate';
import usePushApiError from '../../../../dashboard/hooks/usePushApiError';

export default function ProvidersOffice() {
const { organization_id, id } = useParams();

const assetUrl = useAssetUrl();
const translate = useTranslate();
const setProgress = useSetProgress();
const pushApiError = usePushApiError();

const appConfigs = useAppConfigs();
const officeService = useOfficeService();
Expand Down Expand Up @@ -73,9 +71,9 @@ export default function ProvidersOffice() {
productService
.list({ per_page: 3, organization_id: provider?.id })
.then((res) => setProducts(res.data))
.catch(pushApiError)
.catch(console.error)
.finally(() => setProgress(100));
}, [provider, productService, setProgress, pushApiError]);
}, [provider, productService, setProgress]);

useEffect(() => {
fetchOffice();
Expand Down
Loading