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

This commit is contained in:
crazywoola 2024-03-07 16:48:44 +08:00 committed by GitHub
parent 24809fce07
commit 9440d7fe88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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