refactor: streamline edge building and node filtering in workflow graph

This commit is contained in:
zhsama
2025-12-22 18:59:08 +08:00
parent 035f51ad58
commit 22f25731e8
5 changed files with 6 additions and 18 deletions

View File

@ -4,7 +4,7 @@ import type { FC } from 'react'
import { memo } from 'react'
import { Handle, Position } from 'reactflow'
import type { CustomGroupExitPortNodeData } from './types'
import cn from '@/utils/classnames'
import { cn } from '@/utils/classnames'
type CustomGroupExitPortNodeProps = {
id: string

View File

@ -4,7 +4,7 @@ import type { FC } from 'react'
import { memo } from 'react'
import { Handle, Position } from 'reactflow'
import type { CustomGroupInputNodeData } from './types'
import cn from '@/utils/classnames'
import { cn } from '@/utils/classnames'
type CustomGroupInputNodeProps = {
id: string

View File

@ -4,7 +4,7 @@ import type { FC } from 'react'
import { memo } from 'react'
import { Handle, Position } from 'reactflow'
import type { CustomGroupNodeData } from './types'
import cn from '@/utils/classnames'
import { cn } from '@/utils/classnames'
type CustomGroupNodeProps = {
id: string