fix: chat app added new var old conversation not work (#511)
This commit is contained in:
parent
b23d8a912b
commit
5e2c3eeac3
1 changed files with 3 additions and 0 deletions
|
|
@ -369,6 +369,9 @@ const Main: FC<IMainProps> = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const checkCanSend = () => {
|
const checkCanSend = () => {
|
||||||
|
if (currConversationId !== '-1')
|
||||||
|
return true
|
||||||
|
|
||||||
const prompt_variables = promptConfig?.prompt_variables
|
const prompt_variables = promptConfig?.prompt_variables
|
||||||
const inputs = currInputs
|
const inputs = currInputs
|
||||||
if (!inputs || !prompt_variables || prompt_variables?.length === 0)
|
if (!inputs || !prompt_variables || prompt_variables?.length === 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue