소스 검색

fix: remove chat variable in workflow mode (#18696)

tags/1.3.1
zxhlyh 6 달 전
부모
커밋
13f647feaa
No account linked to committer's email address

+ 6
- 0
web/app/components/workflow-app/components/workflow-header/chat-variable-trigger.tsx 파일 보기

@@ -3,9 +3,15 @@ import ChatVariableButton from '@/app/components/workflow/header/chat-variable-b
import {
useNodesReadOnly,
} from '@/app/components/workflow/hooks'
import { useIsChatMode } from '../../hooks'

const ChatVariableTrigger = () => {
const { nodesReadOnly } = useNodesReadOnly()
const isChatMode = useIsChatMode()

if (!isChatMode)
return null

return <ChatVariableButton disabled={nodesReadOnly} />
}
export default memo(ChatVariableTrigger)

+ 1
- 1
web/app/components/workflow-app/components/workflow-panel.tsx 파일 보기

@@ -74,7 +74,7 @@ const WorkflowPanelOnRight = () => {
)
}
{
showChatVariablePanel && (
showChatVariablePanel && isChatMode && (
<ChatVariablePanel />
)
}

Loading…
취소
저장