fix: removed unnecessary conditional logic for attachment button #667
This commit is contained in:
parent
7d61af7170
commit
d2836826e7
@ -461,13 +461,7 @@ const Inputbar: FC<Props> = ({ assistant: _assistant, setActiveTopic }) => {
|
|||||||
disabled={files.length > 0}
|
disabled={files.length > 0}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<AttachmentButton
|
<AttachmentButton model={model} files={files} setFiles={setFiles} ToolbarButton={ToolbarButton} />
|
||||||
model={model}
|
|
||||||
files={files}
|
|
||||||
setFiles={setFiles}
|
|
||||||
ToolbarButton={ToolbarButton}
|
|
||||||
disabled={!!selectedKnowledgeBase}
|
|
||||||
/>
|
|
||||||
<ToolbarButton type="text" onClick={onNewContext}>
|
<ToolbarButton type="text" onClick={onNewContext}>
|
||||||
<Tooltip placement="top" title={t('chat.input.new.context')}>
|
<Tooltip placement="top" title={t('chat.input.new.context')}>
|
||||||
<PicCenterOutlined />
|
<PicCenterOutlined />
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user