mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-25 15:55:48 +00:00
fix: set empty daily checklist phase if phase is not selected
This commit is contained in:
@@ -486,7 +486,6 @@ export function DailyChecklistContent() {
|
||||
|
||||
try {
|
||||
// Insert new phase links
|
||||
if (tempSelectedPhaseIds.length > 0) {
|
||||
const setDailyChecklistPhaseRes =
|
||||
await DailyChecklistApi.setDailyChecklistPhase(
|
||||
dailyChecklistId,
|
||||
@@ -501,7 +500,6 @@ export function DailyChecklistContent() {
|
||||
toast.error('Gagal menyimpan fase');
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
setSelectedPhaseIds([...tempSelectedPhaseIds]);
|
||||
setShowPhaseModal(false);
|
||||
|
||||
Reference in New Issue
Block a user