|
|
@ -92,7 +92,10 @@ const DialogGantt = ({ openDialog, closeDialog, toggleDialog, idTask, proyekName |
|
|
|
.catch((error) => error.response); |
|
|
|
.catch((error) => error.response); |
|
|
|
|
|
|
|
|
|
|
|
if (result && result.status == 200) { |
|
|
|
if (result && result.status == 200) { |
|
|
|
setDataGantt(result.data.data); |
|
|
|
const sortedData = result.data.data.sort((a, b) => { |
|
|
|
|
|
|
|
return a.name_version.toLowerCase().localeCompare(b.name_version.toLowerCase()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
setDataGantt(sortedData); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
NotificationManager.error(`Data gantt project gagal terload silahkan coba lagi!`, 'Failed!!'); |
|
|
|
NotificationManager.error(`Data gantt project gagal terload silahkan coba lagi!`, 'Failed!!'); |
|
|
|
} |
|
|
|
} |
|
|
|