Merge branch 'development' of gitlab.com:mbugroup/lti-web-client into feat/create-pdf-component

This commit is contained in:
rstubryan
2026-01-28 11:22:59 +07:00
2 changed files with 15 additions and 15 deletions
@@ -49,6 +49,8 @@ const TransferToLayingFormModal = () => {
const modalAction = searchParams.get('action');
const transferToLayingId = searchParams.get('id');
const isModalActionForForm = modalAction === 'add' || modalAction === 'edit';
const { mutate } = useSWRConfig();
const refreshTransferToLayings = () => {
@@ -60,7 +62,7 @@ const TransferToLayingFormModal = () => {
const { data: transferToLaying, isLoading: isLoadingTransferToLaying } =
useSWR(
transferToLayingId
isModalActionForForm && transferToLayingId
? ['detail-transfer-to-laying', transferToLayingId]
: undefined,
([, id]) => TransferToLayingApi.getSingle(Number(id))
@@ -486,21 +486,19 @@ export function DailyChecklistContent() {
try {
// Insert new phase links
if (tempSelectedPhaseIds.length > 0) {
const setDailyChecklistPhaseRes =
await DailyChecklistApi.setDailyChecklistPhase(
dailyChecklistId,
tempSelectedPhaseIds
);
const setDailyChecklistPhaseRes =
await DailyChecklistApi.setDailyChecklistPhase(
dailyChecklistId,
tempSelectedPhaseIds
);
if (isResponseError(setDailyChecklistPhaseRes)) {
console.error(
'Error saving phases:',
setDailyChecklistPhaseRes.message
);
toast.error('Gagal menyimpan fase');
return;
}
if (isResponseError(setDailyChecklistPhaseRes)) {
console.error(
'Error saving phases:',
setDailyChecklistPhaseRes.message
);
toast.error('Gagal menyimpan fase');
return;
}
setSelectedPhaseIds([...tempSelectedPhaseIds]);