diff --git a/api/src/chat/services/bot.service.ts b/api/src/chat/services/bot.service.ts index 4152f34e..8a9ab5ed 100644 --- a/api/src/chat/services/bot.service.ts +++ b/api/src/chat/services/bot.service.ts @@ -255,7 +255,7 @@ export class BotService { convo.context.attempt++; fallback = true; } else { - if (convo.context) convo.context.attempt = 0; + convo.context.attempt = 0; fallbackBlock = undefined; }