remove duplicate gather context, fix dispatch -> false
This commit is contained in:
parent
1ec8c56816
commit
7ee2a356a3
2 changed files with 1 additions and 8 deletions
|
|
@ -194,7 +194,7 @@ async function resolveEditorContent({
|
|||
}
|
||||
|
||||
if (shouldGatherContext) {
|
||||
dispatch(setIsGatheringContext(true));
|
||||
dispatch(setIsGatheringContext(false));
|
||||
}
|
||||
|
||||
return [contextItems, selectedCode, parts];
|
||||
|
|
|
|||
|
|
@ -44,13 +44,6 @@ export const gatherContext = createAsyncThunk<
|
|||
}
|
||||
|
||||
// Resolve context providers and construct new history
|
||||
const shouldGatherContext =
|
||||
modifiers.useCodebase || hasSlashCommandOrContextProvider(editorState);
|
||||
|
||||
if (shouldGatherContext) {
|
||||
dispatch(setIsGatheringContext(true));
|
||||
}
|
||||
|
||||
let [selectedContextItems, selectedCode, content] =
|
||||
await resolveEditorContent({
|
||||
editorState,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue