refactor: update useNodes import to use reactflow across multiple components (#29195)

This commit is contained in:
Wu Tianwei
2025-12-05 16:38:03 +08:00
committed by twwu
parent 7b514b1147
commit cbcdecf9a8
7 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
import { useCallback } from 'react'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { uniqBy } from 'lodash-es'
import {
useIsChatMode,

View File

@@ -1,6 +1,6 @@
import type { FC } from 'react'
import React from 'react'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { useTranslation } from 'react-i18next'
import type { AssignerNodeType } from './types'
import { isSystemVar } from '@/app/components/workflow/nodes/_base/components/variable/utils'

View File

@@ -1,6 +1,6 @@
import type { FC } from 'react'
import React from 'react'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { useTranslation } from 'react-i18next'
import type { DocExtractorNodeType } from './types'
import { isSystemVar } from '@/app/components/workflow/nodes/_base/components/variable/utils'

View File

@@ -3,7 +3,7 @@ import {
useMemo,
} from 'react'
import { useTranslation } from 'react-i18next'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { ComparisonOperator } from '../types'
import {
comparisonOperatorNotRequireValue,

View File

@@ -1,6 +1,6 @@
import type { FC } from 'react'
import React from 'react'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { useTranslation } from 'react-i18next'
import type { ListFilterNodeType } from './types'
import { isSystemVar } from '@/app/components/workflow/nodes/_base/components/variable/utils'

View File

@@ -3,7 +3,7 @@ import {
useMemo,
} from 'react'
import { useTranslation } from 'react-i18next'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { useStore } from '../../../store'
import { BlockEnum } from '../../../types'
import type {

View File

@@ -2,7 +2,7 @@ import { useCallback } from 'react'
import {
useStoreApi,
} from 'reactflow'
import useNodes from '@/app/components/workflow/store/workflow/use-nodes'
import { useNodes } from 'reactflow'
import { uniqBy } from 'lodash-es'
import { produce } from 'immer'