Skip to content

Commit

Permalink
馃悰 Fix broken skippable file upload input
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Feb 1, 2024
1 parent 678e6d5 commit 3128ebd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/bot-engine/continueBotFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,8 @@ const getOutgoingEdgeId =
const parseReply =
(state: SessionState) =>
async (reply: Reply, block: InputBlock): Promise<ParsedReply> => {
if (typeof reply !== 'string') {
if (block.type !== InputBlockType.FILE || !reply)
return { status: 'fail' }
if (reply && typeof reply !== 'string') {
if (block.type !== InputBlockType.FILE) return { status: 'fail' }
if (block.options?.visibility !== 'Public') {
return {
status: 'success',
Expand Down

0 comments on commit 3128ebd

Please sign in to comment.