fixing validate solution optional in brand error code

This commit is contained in:
2026-01-08 14:32:27 +07:00
parent 0aad43c751
commit 6fdb259246

View File

@@ -479,14 +479,14 @@ const EditBrandDevice = () => {
return;
}
if (!solutionData || solutionData.length === 0) {
NotifAlert({
icon: 'warning',
title: 'Perhatian',
message: 'Setiap error code harus memiliki minimal 1 solution!',
});
return;
}
// if (!solutionData || solutionData.length === 0) {
// NotifAlert({
// icon: 'warning',
// title: 'Perhatian',
// message: 'Setiap error code harus memiliki minimal 1 solution!',
// });
// return;
// }
const formattedSolutions = solutionData.map(solution => {
const solutionType = solution.type || 'text';