mirror of
https://github.com/langgenius/dify.git
synced 2026-04-15 18:06:36 +08:00
fix: incorrect import
This commit is contained in:
parent
3e0640a3aa
commit
1aa16821c1
@ -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,
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user