comment out lastSessionResult
This commit is contained in:
parent
915214a26f
commit
a58ddfa175
1 changed files with 6 additions and 6 deletions
|
|
@ -147,12 +147,12 @@ export const loadLastSession = createAsyncThunk<void, void, ThunkApiType>(
|
|||
async (_, { extra, dispatch, getState }) => {
|
||||
let lastSessionId = getState().session.lastSessionId;
|
||||
|
||||
const lastSessionResult = await extra.ideMessenger.request("history/list", {
|
||||
limit: 1,
|
||||
});
|
||||
if (lastSessionResult.status === "success") {
|
||||
lastSessionId = lastSessionResult.content.at(0)?.sessionId;
|
||||
}
|
||||
// const lastSessionResult = await extra.ideMessenger.request("history/list", {
|
||||
// limit: 1,
|
||||
// });
|
||||
// if (lastSessionResult.status === "success") {
|
||||
// lastSessionId = lastSessionResult.content.at(0)?.sessionId;
|
||||
// }
|
||||
|
||||
if (!lastSessionId) {
|
||||
dispatch(newSession());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue