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({});
|
||||
}, []);
|
||||
|
||||
const handleViewDetail = useCallback(
|
||||
(uniformity: Uniformity) => {
|
||||
router.push(`/uniformity/detail?uniformityId=${uniformity.id}`);
|
||||
setRowSelection({});
|
||||
},
|
||||
[router]
|
||||
);
|
||||
|
||||
const handleBulkApprove = useCallback(() => {
|
||||
bulkApproveModal.openModal();
|
||||
}, [bulkApproveModal]);
|
||||
@@ -250,7 +242,7 @@ const UniformityTable = ({ refresh }: { refresh?: () => void }) => {
|
||||
toast.success(
|
||||
`Successfully rejected ${selectedRowIds.length} Uniformity data!`
|
||||
);
|
||||
} catch (error) {
|
||||
} catch {
|
||||
toast.error('Failed to reject Uniformity data');
|
||||
} finally {
|
||||
setIsBulkActionLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user