fix: config error handling
This commit is contained in:
parent
cc199c2863
commit
170676a461
1 changed files with 1 additions and 2 deletions
|
|
@ -34,6 +34,7 @@ function useSetup(dispatch: Dispatch<any>) {
|
|||
return;
|
||||
}
|
||||
const { config, profileId } = result.content;
|
||||
dispatch(setConfigError(undefined));
|
||||
dispatch(setConfig(config));
|
||||
dispatch(setSelectedProfileId(profileId));
|
||||
setConfigLoaded(true);
|
||||
|
|
@ -109,8 +110,6 @@ function useSetup(dispatch: Dispatch<any>) {
|
|||
useWebviewListener("configUpdate", async () => {
|
||||
await loadConfig();
|
||||
|
||||
dispatch(setConfigError(undefined));
|
||||
|
||||
if (!isJetBrains && !getLocalStorage("disableIndexing")) {
|
||||
debouncedIndexDocs();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue