diff --git a/frontend/src/conversation/conversationSlice.ts b/frontend/src/conversation/conversationSlice.ts index 637b5365..e40441c5 100644 --- a/frontend/src/conversation/conversationSlice.ts +++ b/frontend/src/conversation/conversationSlice.ts @@ -56,7 +56,7 @@ export const fetchAnswer = createAsyncThunk< question, signal, state.preference.token, - state.preference.selectedDocs!, + state.preference.selectedDocs || [], currentConversationId, state.preference.prompt.id, state.preference.chunks, @@ -163,7 +163,7 @@ export const fetchAnswer = createAsyncThunk< question, signal, state.preference.token, - state.preference.selectedDocs!, + state.preference.selectedDocs || [], state.conversation.conversationId, state.preference.prompt.id, state.preference.chunks,