fix: chat app added new var old conversation not work (#511)

This commit is contained in:
Joel 2023-07-04 14:33:41 +08:00 committed by GitHub
parent b23d8a912b
commit 5e2c3eeac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,6 +369,9 @@ const Main: FC<IMainProps> = ({
}
const checkCanSend = () => {
if (currConversationId !== '-1')
return true
const prompt_variables = promptConfig?.prompt_variables
const inputs = currInputs
if (!inputs || !prompt_variables || prompt_variables?.length === 0)