[agent-pipeline] pipe-20260318044621-56k5 round-10

This commit is contained in:
DDD1542 2026-03-18 14:56:46 +09:00
parent d8b56a1a78
commit 7f781b0177
2 changed files with 6 additions and 6 deletions

View File

@ -89,7 +89,7 @@ export default function BatchManagementPage() {
const newStatus = currentStatus === 'Y' ? 'N' : 'Y'; const newStatus = currentStatus === 'Y' ? 'N' : 'Y';
console.log("📝 새로운 상태:", newStatus); console.log("📝 새로운 상태:", newStatus);
const result = await BatchAPI.updateBatchConfig(batchId, { isActive: newStatus }); const result = await BatchAPI.updateBatchConfig(batchId, { isActive: newStatus === 'Y' });
console.log("✅ API 호출 성공:", result); console.log("✅ API 호출 성공:", result);
toast.success(`배치가 ${newStatus === 'Y' ? '활성화' : '비활성화'}되었습니다.`); toast.success(`배치가 ${newStatus === 'Y' ? '활성화' : '비활성화'}되었습니다.`);

View File

@ -79,7 +79,7 @@ export default function BatchCard({
</span> </span>
<span className="font-medium"> <span className="font-medium">
{new Date(batch.created_date).toLocaleDateString('ko-KR')} {batch.created_date ? new Date(batch.created_date).toLocaleDateString('ko-KR') : '-'}
</span> </span>
</div> </div>
@ -119,7 +119,7 @@ export default function BatchCard({
<Button <Button
variant="outline" variant="outline"
size="sm" size="sm"
onClick={() => onExecute(batch.id)} onClick={() => batch.id != null && onExecute(batch.id)}
disabled={isExecuting} disabled={isExecuting}
className="h-9 flex-1 gap-2 text-sm" className="h-9 flex-1 gap-2 text-sm"
> >
@ -135,7 +135,7 @@ export default function BatchCard({
<Button <Button
variant="outline" variant="outline"
size="sm" size="sm"
onClick={() => onToggleStatus(batch.id, batch.is_active)} onClick={() => batch.id != null && onToggleStatus(batch.id, batch.is_active || 'N')}
className="h-9 flex-1 gap-2 text-sm" className="h-9 flex-1 gap-2 text-sm"
> >
{isActive ? ( {isActive ? (
@ -150,7 +150,7 @@ export default function BatchCard({
<Button <Button
variant="outline" variant="outline"
size="sm" size="sm"
onClick={() => onEdit(batch.id)} onClick={() => batch.id != null && onEdit(batch.id)}
className="h-9 flex-1 gap-2 text-sm" className="h-9 flex-1 gap-2 text-sm"
> >
<Edit className="h-4 w-4" /> <Edit className="h-4 w-4" />
@ -161,7 +161,7 @@ export default function BatchCard({
<Button <Button
variant="destructive" variant="destructive"
size="sm" size="sm"
onClick={() => onDelete(batch.id, batch.batch_name)} onClick={() => batch.id != null && onDelete(batch.id, batch.batch_name)}
className="h-9 flex-1 gap-2 text-sm" className="h-9 flex-1 gap-2 text-sm"
> >
<Trash2 className="h-4 w-4" /> <Trash2 className="h-4 w-4" />