Explorar el Código

fix: the behavior of save action in opening config panel (#2736)

crazywoola hace 1 año
padre
commit
9440d7fe88

+ 4 - 1
web/app/components/base/chat/chat-with-history/config-panel/index.tsx

@@ -95,7 +95,10 @@ const ConfigPanel = () => {
                 <Button
                   type='primary'
                   className='mr-2 text-sm font-medium'
-                  onClick={handleStartChat}
+                  onClick={() => {
+                    setCollapsed(true)
+                    handleStartChat()
+                  }}
                 >
                   {t('common.operation.save')}
                 </Button>