mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 08:33:20 +00:00
fix: handle potential undefined value for selectedDocs in fetchAnswer
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user