Skip to content

Commit

Permalink
feat: use origin
Browse files Browse the repository at this point in the history
  • Loading branch information
BiswaViraj committed Oct 23, 2024
1 parent 431a807 commit c981ee5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/dashboard/src/components/workflow-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
RiRouteFill,
} from 'react-icons/ri';
import { createSearchParams, Link, useLocation, useSearchParams } from 'react-router-dom';

import { getV2 } from '@/api/api.client';
import { DefaultPagination } from '@/components/default-pagination';
import { Badge, BadgeContent } from '@/components/primitives/badge';
Expand Down Expand Up @@ -155,7 +154,7 @@ export const WorkflowList = () => {
) : (
<>
{workflowsQuery.data.workflows.map((workflow) => {
const isV1Workflow = workflow.origin === WorkflowOriginEnum.NOVU_CLOUD;
const isV1Workflow = workflow.origin === WorkflowOriginEnum.NOVU_CLOUD_V1;
const workflowLink = isV1Workflow
? buildRoute(LEGACY_ROUTES.EDIT_WORKFLOW, {
workflowId: workflow._id,
Expand Down

0 comments on commit c981ee5

Please sign in to comment.