refactor(FE-Storyless): remove console, window and err catch

This commit is contained in:
rstubryan
2025-11-27 13:46:53 +07:00
parent 4b6144d0b4
commit 7a76719547
4 changed files with 7 additions and 10 deletions
@@ -2924,8 +2924,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
}, 1000);
}
}
} catch (error) {
console.error('Error creating recording:', error);
} catch {
toast.error(
'Gagal membuat recording. Silakan coba lagi.'
);
@@ -173,8 +173,7 @@ const GradingForm = ({ type = 'add', initialValues }: GradingFormProps) => {
deleteModal.closeModal();
toast.success(res?.message || 'Successfully delete Grading!');
router.push('/production/recording');
} catch (err) {
console.error(err);
} catch {
setGradingFormErrorMessage('Failed to delete Grading');
} finally {
setIsDeleteLoading(false);