Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(obsidian): stale data (#3703)

Elijah Potter383e4427f52b
diff --git a/packages/obsidian-plugin/src/HarperSettingTab.ts b/packages/obsidian-plugin/src/HarperSettingTab.ts
index 0018134cc..9afc5a6f2 100644
--- a/packages/obsidian-plugin/src/HarperSettingTab.ts
+++ b/packages/obsidian-plugin/src/HarperSettingTab.ts
@@ -37,15 +37,11 @@ export class HarperSettingTab extends PluginSettingTab {
}
updateSettings() {
+ this.settings = undefined;
this.state.getSettings().then((v) => {
- const shouldRedrawWholeTab = this.settings == null;
this.settings = v;
this.updateToggleAllRulesButton();
- if (shouldRedrawWholeTab) {
- this.display(false);
- return;
- }
- this.rerenderLintSettings();
+ this.display(false);
});
}
@@ -74,7 +70,6 @@ export class HarperSettingTab extends PluginSettingTab {
display(update = true) {
if (update) {
this.update();
- this.display(false);
}
const { containerEl } = this;