Skip to content

Commit 0786e17

Browse files
committed
Make AskUploadButton showing logic more robust; should probably also make sure isRunning & isAsk are always booleans. Possible fix for Chainlit#1548
1 parent 644695a commit 0786e17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/src/components/molecules/messages/Message.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ const Message = memo(
185185
allowHtml={allowHtml}
186186
latex={latex}
187187
/>
188-
{!isRunning && isAsk && (
188+
{!isRunning && isAsk ? (
189189
<AskUploadButton onError={onError} />
190-
)}
190+
) : null}
191191
{actions?.length ? (
192192
<MessageActions message={message} actions={actions} />
193193
) : null}

0 commit comments

Comments
 (0)