mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE-438): Remove unused view handler and simplify catch
This commit is contained in:
@@ -201,14 +201,6 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
setRowSelection({});
|
setRowSelection({});
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const handleViewDetail = useCallback(
|
|
||||||
(uniformity: Uniformity) => {
|
|
||||||
router.push(`/uniformity/detail?uniformityId=${uniformity.id}`);
|
|
||||||
setRowSelection({});
|
|
||||||
},
|
|
||||||
[router]
|
|
||||||
);
|
|
||||||
|
|
||||||
const handleBulkApprove = useCallback(() => {
|
const handleBulkApprove = useCallback(() => {
|
||||||
bulkApproveModal.openModal();
|
bulkApproveModal.openModal();
|
||||||
}, [bulkApproveModal]);
|
}, [bulkApproveModal]);
|
||||||
@@ -250,7 +242,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
|||||||
toast.success(
|
toast.success(
|
||||||
`Successfully rejected ${selectedRowIds.length} Uniformity data!`
|
`Successfully rejected ${selectedRowIds.length} Uniformity data!`
|
||||||
);
|
);
|
||||||
} catch (error) {
|
} catch {
|
||||||
toast.error('Failed to reject Uniformity data');
|
toast.error('Failed to reject Uniformity data');
|
||||||
} finally {
|
} finally {
|
||||||
setIsBulkActionLoading(false);
|
setIsBulkActionLoading(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user