Skip to content

Commit

Permalink
fix: schedule runner in ui
Browse files Browse the repository at this point in the history
  • Loading branch information
okradze committed Nov 30, 2023
1 parent b6ded97 commit c3c0ce6
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions apps/ui/src/pages/Schedule/Schedules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ const Schedules = () => {
recurring: schedule.interval ? schedule.interval : '-',
status: schedule.is_active ? 'Active' : 'Inactive',
create_session: configs.create_session_on_run ? 'True' : 'False',
runner:
options?.filter((option: any) => option.value === configs?.agent_id).length > 0
? options?.filter((option: any) => option.value === configs?.agent_id)?.[0].label
: '',
runner: options?.find((option: { label: string; value: string }) => {
return (
option.value === configs.agent_id ||
option.value === configs.team_id ||
option.value === configs.chat_id
)
})?.label,
})) || []

const columns = useMemo(
Expand Down

0 comments on commit c3c0ce6

Please sign in to comment.