Conditionally render WorkflowSelector when in manual mode
This commit is contained in:
14
src/App.jsx
14
src/App.jsx
@@ -1965,12 +1965,14 @@ async function createNewChat() {
|
||||
libraries={libraries}
|
||||
setChatLibraryForSession={setChatLibraryForSession}
|
||||
/>
|
||||
<WorkflowSelector
|
||||
disabled={isSending}
|
||||
selection={chatWorkflowSelection}
|
||||
workflows={workflows}
|
||||
onChange={(nextSelection) => setChatWorkflowForSession(activeSessionId, nextSelection)}
|
||||
/>
|
||||
{workflowSelectionMode === 'manual' && (
|
||||
<WorkflowSelector
|
||||
disabled={isSending}
|
||||
selection={chatWorkflowSelection}
|
||||
workflows={workflows}
|
||||
onChange={(nextSelection) => setChatWorkflowForSession(activeSessionId, nextSelection)}
|
||||
/>
|
||||
)}
|
||||
<div className="footer-tool-group" ref={attachmentMenuRef}>
|
||||
<button
|
||||
type="button"
|
||||
|
||||
Reference in New Issue
Block a user