Skip to content

Commit f35474b

Browse files
committed
load last session after initial config load
1 parent 16c10d7 commit f35474b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

gui/src/hooks/ParallelListeners.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ function ParallelListeners() {
107107
await handleConfigUpdate(true, result.content);
108108
}
109109
dispatch(setConfigLoading(false));
110+
await dispatch(loadLastSession());
110111
}
111112
void initialLoadConfig();
112113
const interval = setInterval(() => {
@@ -243,10 +244,6 @@ function ParallelListeners() {
243244
migrateLocalStorage(dispatch);
244245
}, []);
245246

246-
useEffect(() => {
247-
void dispatch(loadLastSession());
248-
}, []);
249-
250247
return <></>;
251248
}
252249

0 commit comments

Comments
 (0)