mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
(fix:edit-query)delete following queries
This commit is contained in:
@@ -337,9 +337,7 @@ const ConversationBubble = forwardRef<
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<code className="whitespace-pre-line" {...props}>
|
||||
{children}
|
||||
</code>
|
||||
<code className="whitespace-pre-line">{children}</code>
|
||||
);
|
||||
},
|
||||
ul({ children }) {
|
||||
|
||||
@@ -173,7 +173,10 @@ export const conversationSlice = createSlice({
|
||||
state,
|
||||
action: PayloadAction<{ index: number; prompt: string; query?: Query }>,
|
||||
) {
|
||||
state.queries[action.payload.index] = action.payload;
|
||||
state.queries = [
|
||||
...state.queries.splice(0, action.payload.index),
|
||||
action.payload,
|
||||
];
|
||||
},
|
||||
updateStreamingQuery(
|
||||
state,
|
||||
|
||||
@@ -85,7 +85,7 @@ const Documents: React.FC<DocumentsProps> = ({
|
||||
setSortField(newSortField);
|
||||
setSortOrder(newSortOrder);
|
||||
}
|
||||
|
||||
setLoading(true);
|
||||
getDocsWithPagination(
|
||||
newSortField,
|
||||
newSortOrder,
|
||||
|
||||
Reference in New Issue
Block a user