mirror of
https://github.com/langgenius/dify.git
synced 2026-04-22 07:46:31 +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'
|
} 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,
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user