fixing validate solution optional in brand error code
This commit is contained in:
@@ -479,14 +479,14 @@ const EditBrandDevice = () => {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!solutionData || solutionData.length === 0) {
|
// if (!solutionData || solutionData.length === 0) {
|
||||||
NotifAlert({
|
// NotifAlert({
|
||||||
icon: 'warning',
|
// icon: 'warning',
|
||||||
title: 'Perhatian',
|
// title: 'Perhatian',
|
||||||
message: 'Setiap error code harus memiliki minimal 1 solution!',
|
// message: 'Setiap error code harus memiliki minimal 1 solution!',
|
||||||
});
|
// });
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
const formattedSolutions = solutionData.map(solution => {
|
const formattedSolutions = solutionData.map(solution => {
|
||||||
const solutionType = solution.type || 'text';
|
const solutionType = solution.type || 'text';
|
||||||
|
|||||||
Reference in New Issue
Block a user