refactor(FE-438): Remove unused view handler and simplify catch

This commit is contained in:
rstubryan
2025-12-29 14:03:14 +07:00
parent 17a6cee1e3
commit dc4e569453
@@ -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);