mirror of https://github.com/langgenius/dify.git
fix immer import
This commit is contained in:
parent
a4e2ef6b0c
commit
6afc99a5ad
|
|
@ -3,7 +3,7 @@ import { useSelectOrDelete } from '../../hooks'
|
|||
import { DELETE_HITL_INPUT_BLOCK_COMMAND } from './'
|
||||
import ComponentUi from './component-ui'
|
||||
import type { FormInputItem } from '@/app/components/workflow/nodes/human-input/types'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
|
||||
type Props = {
|
||||
nodeKey: string
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { useTranslation } from 'react-i18next'
|
|||
import { getKeyboardKeyNameBySystem } from '@/app/components/workflow/utils'
|
||||
import type { FormInputItem, FormInputItemPlaceholder } from '@/app/components/workflow/nodes/human-input/types'
|
||||
import PrePopulate from './pre-populate'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
import { InputVarType } from '@/app/components/workflow/types'
|
||||
|
||||
const i18nPrefix = 'workflow.nodes.humanInput.insertInputField'
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import { useCallback } from 'react'
|
|||
import {
|
||||
useStoreApi,
|
||||
} from 'reactflow'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
import { useWorkflowStore } from '@/app/components/workflow/store'
|
||||
import type { HumanInputRequiredResponse } from '@/types/workflow'
|
||||
import { NodeRunningStatus } from '@/app/components/workflow/types'
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import { useCallback } from 'react'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
import { useWorkflowStore } from '@/app/components/workflow/store'
|
||||
import { WorkflowRunningStatus } from '@/app/components/workflow/types'
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
import Tooltip from '@/app/components/base/tooltip'
|
||||
import MethodSelector from './method-selector'
|
||||
import MethodItem from './method-item'
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
import type { DeliveryMethod, HumanInputNodeType, UserAction } from './types'
|
||||
import useNodeCrud from '@/app/components/workflow/nodes/_base/hooks/use-node-crud'
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import { useCallback, useEffect, useRef, useState } from 'react'
|
||||
import useNodeCrud from '../_base/hooks/use-node-crud'
|
||||
import type { FormInputItem, HumanInputNodeType } from './types'
|
||||
import produce from 'immer'
|
||||
import { produce } from 'immer'
|
||||
|
||||
const useFormContent = (id: string, payload: HumanInputNodeType) => {
|
||||
const [editorKey, setEditorKey] = useState(0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue