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'
import { cn } from '@/utils/classnames'
import Divider from '../../base/divider'
import { collaborationManager } from '../collaboration'
import { collaborationManager } from '../collaboration/core/collaboration-manager'
import {
useNodesReadOnly,
useWorkflowHistory,

View File

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