fix: handle potential undefined value for selectedDocs in fetchAnswer

This commit is contained in:
Alex
2025-10-15 17:12:52 +01:00
parent d28ef6b094
commit 096f6d91a2

View File

@@ -56,7 +56,7 @@ export const fetchAnswer = createAsyncThunk<
question, question,
signal, signal,
state.preference.token, state.preference.token,
state.preference.selectedDocs!, state.preference.selectedDocs || [],
currentConversationId, currentConversationId,
state.preference.prompt.id, state.preference.prompt.id,
state.preference.chunks, state.preference.chunks,
@@ -163,7 +163,7 @@ export const fetchAnswer = createAsyncThunk<
question, question,
signal, signal,
state.preference.token, state.preference.token,
state.preference.selectedDocs!, state.preference.selectedDocs || [],
state.conversation.conversationId, state.conversation.conversationId,
state.preference.prompt.id, state.preference.prompt.id,
state.preference.chunks, state.preference.chunks,