Fixed display prompt showing when there is no template
This commit is contained in:
parent
e438f5a2a6
commit
07e6b137c4
1 changed files with 49 additions and 44 deletions
|
|
@ -138,6 +138,8 @@ export default function ChatMessage({
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
|
{template && (
|
||||||
|
<>
|
||||||
<button
|
<button
|
||||||
className="form-modal-initial-prompt-btn"
|
className="form-modal-initial-prompt-btn"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|
@ -183,6 +185,9 @@ export default function ChatMessage({
|
||||||
})
|
})
|
||||||
: chat.message[chat.chatKey]}
|
: chat.message[chat.chatKey]}
|
||||||
</span>
|
</span>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
|
{chat.message[chat.chatKey]}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue