From 053b1e8e6be67b5c44a7b250e45decf95ca8bf91 Mon Sep 17 00:00:00 2001 From: Recoup Agent Date: Mon, 9 Mar 2026 15:01:10 +0000 Subject: [PATCH] agent: Scheduled actions have been reported to be crashing the page for some ac --- components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx | 4 ++-- components/VercelChat/tools/tasks/TaskCard.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx b/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx index 9a61adb0a..7287c232c 100644 --- a/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx +++ b/components/VercelChat/dialogs/tasks/TaskScheduleSection.tsx @@ -30,11 +30,11 @@ const TaskScheduleSection = ({
- {schedule} + {schedule || "No schedule"}
- {parseCronToHuman(schedule)} + {schedule ? parseCronToHuman(schedule) : "No schedule"}
diff --git a/components/VercelChat/tools/tasks/TaskCard.tsx b/components/VercelChat/tools/tasks/TaskCard.tsx index dfa54fc8b..7a78c0667 100644 --- a/components/VercelChat/tools/tasks/TaskCard.tsx +++ b/components/VercelChat/tools/tasks/TaskCard.tsx @@ -78,11 +78,11 @@ const TaskCard: React.FC = ({ task, isDeleted, ownerEmail }) => {
- {isRecurring(task.schedule) && ( + {task.schedule && isRecurring(task.schedule) && ( )} - {parseCronToHuman(task.schedule.trim())} + {task.schedule ? parseCronToHuman(task.schedule.trim()) : "No schedule"}