nsarrazin commited on
Commit
f6fbc81
·
1 Parent(s): 106688c

fix: settings page

Browse files
Files changed (1) hide show
  1. src/lib/stores/settings.ts +1 -3
src/lib/stores/settings.ts CHANGED
@@ -39,9 +39,8 @@ export function createSettingsStore(initialValue: Omit<SettingsStore, "recentlyS
39
  ...settings,
40
  }));
41
 
42
- clearTimeout(timeoutId);
43
-
44
  if (browser) {
 
45
  timeoutId = setTimeout(async () => {
46
  await fetch(`${base}/settings`, {
47
  method: "POST",
@@ -66,7 +65,6 @@ export function createSettingsStore(initialValue: Omit<SettingsStore, "recentlyS
66
  recentlySaved: false,
67
  }));
68
  }, 3000);
69
- invalidate(UrlDependency.ConversationList);
70
  }, 300);
71
  // debounce server calls by 300ms
72
  }
 
39
  ...settings,
40
  }));
41
 
 
 
42
  if (browser) {
43
+ clearTimeout(timeoutId);
44
  timeoutId = setTimeout(async () => {
45
  await fetch(`${base}/settings`, {
46
  method: "POST",
 
65
  recentlySaved: false,
66
  }));
67
  }, 3000);
 
68
  }, 300);
69
  // debounce server calls by 300ms
70
  }