From 5f9b97a43c6d57b0a1432cebc3349f46ef2f0b29 Mon Sep 17 00:00:00 2001 From: "Bryson G." Date: Mon, 16 Dec 2024 18:37:24 -0800 Subject: [PATCH] fix(dashboard): fix requested changes --- .../(diagram)/wfSpec/[...props]/actions/getScheduleWfSpec.ts | 2 +- .../(diagram)/wfSpec/[...props]/components/WfRuns.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/actions/getScheduleWfSpec.ts b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/actions/getScheduleWfSpec.ts index a54e1ba8f..aaceb50f3 100644 --- a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/actions/getScheduleWfSpec.ts +++ b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/actions/getScheduleWfSpec.ts @@ -19,7 +19,7 @@ export const getScheduleWfSpec = async ({ name, version, tenantId }: GetWfSpecPr await client.searchScheduledWfRun({ wfSpecName: name, majorVersion: parseInt(majorVersion) || 0, - revision: parseInt(revision) | 0, + revision: parseInt(revision) || 0, }) ).results.map(async scheduledWfRun => { return await client.getScheduledWfRun({ diff --git a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRuns.tsx b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRuns.tsx index 78dd5cb83..b20605f55 100644 --- a/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRuns.tsx +++ b/dashboard/src/app/[tenantId]/(diagram)/wfSpec/[...props]/components/WfRuns.tsx @@ -1,5 +1,4 @@ 'use client' -import LinkWithTenant from '@/app/[tenantId]/components/LinkWithTenant' import { SearchFooter } from '@/app/[tenantId]/components/SearchFooter' import { SEARCH_DEFAULT_LIMIT, TIME_RANGES, TimeRange } from '@/app/constants' import { concatWfRunIds } from '@/app/utils' @@ -11,7 +10,6 @@ import { FC, Fragment, useMemo, useState } from 'react' import { PaginatedWfRunIdList, searchWfRun } from '../actions/searchWfRun' import { WfRunsHeader } from './WfRunsHeader' import { SelectionLink } from '@/app/[tenantId]/components/SelectionLink' -import { parseExpression } from 'cron-parser' export const WfRuns: FC = spec => { const searchParams = useSearchParams()