From 3128ebd4316d392cb82a8af05ee77c155f8f55ca Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Thu, 1 Feb 2024 16:54:47 +0100 Subject: [PATCH] :bug: Fix broken skippable file upload input --- packages/bot-engine/continueBotFlow.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/bot-engine/continueBotFlow.ts b/packages/bot-engine/continueBotFlow.ts index 4a7717c0b..3f31296e6 100644 --- a/packages/bot-engine/continueBotFlow.ts +++ b/packages/bot-engine/continueBotFlow.ts @@ -408,9 +408,8 @@ const getOutgoingEdgeId = const parseReply = (state: SessionState) => async (reply: Reply, block: InputBlock): Promise => { - 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',