Fix: hide view chat setting button when no inputs form (#19263)
This commit is contained in:
parent
8537abfff8
commit
b78846078c
2 changed files with 9 additions and 3 deletions
|
|
@ -27,6 +27,7 @@ const HeaderInMobile = () => {
|
|||
handleDeleteConversation,
|
||||
handleRenameConversation,
|
||||
conversationRenaming,
|
||||
inputsForms,
|
||||
} = useChatWithHistoryContext()
|
||||
const { t } = useTranslation()
|
||||
const isPin = pinnedConversationList.some(item => item.id === currentConversationId)
|
||||
|
|
@ -99,6 +100,7 @@ const HeaderInMobile = () => {
|
|||
<MobileOperationDropdown
|
||||
handleResetChat={handleNewConversation}
|
||||
handleViewChatSettings={() => setShowChatSettings(true)}
|
||||
hideViewChatSettings={inputsForms.length < 1}
|
||||
/>
|
||||
</div>
|
||||
{showSidebar && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue