fix: incorrect import

This commit is contained in:
hjlarry 2026-04-10 11:16:26 +08:00
parent 3e0640a3aa
commit 1aa16821c1
2 changed files with 3 additions and 6 deletions

View File

@ -20,7 +20,7 @@ import {
} from '@/app/components/base/portal-to-follow-elem' } from '@/app/components/base/portal-to-follow-elem'
import { cn } from '@/utils/classnames' import { cn } from '@/utils/classnames'
import Divider from '../../base/divider' import Divider from '../../base/divider'
import { collaborationManager } from '../collaboration' import { collaborationManager } from '../collaboration/core/collaboration-manager'
import { import {
useNodesReadOnly, useNodesReadOnly,
useWorkflowHistory, useWorkflowHistory,

View File

@ -40,7 +40,7 @@ import ReactFlow, {
useReactFlow, useReactFlow,
useStoreApi, useStoreApi,
} from 'reactflow' } from 'reactflow'
import Toast from '@/app/components/base/toast' import { toast } from '@/app/components/base/ui/toast'
import { IS_DEV } from '@/config' import { IS_DEV } from '@/config'
import { useEventEmitterContextContext } from '@/context/event-emitter' import { useEventEmitterContextContext } from '@/context/event-emitter'
import dynamic from '@/next/dynamic' import dynamic from '@/next/dynamic'
@ -271,10 +271,7 @@ export const Workflow: FC<WorkflowProps> = memo(({
useEffect(() => { useEffect(() => {
return collaborationManager.onHistoryAction((_) => { return collaborationManager.onHistoryAction((_) => {
Toast.notify({ toast.info(t('collaboration.historyAction.generic', { ns: 'workflow' }))
type: 'info',
message: t('collaboration.historyAction.generic', { ns: 'workflow' }),
})
}) })
}, [t]) }, [t])
const { const {