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 GitHub
parent 99e2cb0702
commit e7c26a2f3f
7 changed files with 7 additions and 7 deletions

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'