Skip to content

Commit

Permalink
Merge pull request #349 from Lumerin-protocol/feature/fixed-opt-bug
Browse files Browse the repository at this point in the history
Fixed offset issue
  • Loading branch information
bohdan-titan authored Dec 10, 2024
2 parents 58f81ce + 1810ba7 commit 6d623cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ui-desktop/src/renderer/src/components/chat/Chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ const Chat = (props) => {
while(!bidsSpinWaitClosed.current) {
await new Promise(resolve => setTimeout(resolve, 300));
}
setIsLoading(true);
setIsLoading(false);
}

const toggleDrawer = async () => {
Expand Down
8 changes: 4 additions & 4 deletions ui-desktop/src/renderer/src/store/utils/apiCallsHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getSessionsByUser = async (url, user) => {
}
}

const limit = 20;
const limit = 50;
let offset = 0;
let sessions: any[] = [];
let all = false;
Expand All @@ -30,7 +30,7 @@ export const getSessionsByUser = async (url, user) => {
all = true;
}
else {
offset++;
offset += limit;
}
}

Expand All @@ -55,7 +55,7 @@ export const getBidsByModelId = async (url, modelId) => {
}
}

const limit = 20;
const limit = 50;
let offset = 0;
let bids: any[] = [];
let all = false;
Expand All @@ -69,7 +69,7 @@ export const getBidsByModelId = async (url, modelId) => {
all = true;
}
else {
offset++;
offset += limit;
}
}

Expand Down

0 comments on commit 6d623cc

Please sign in to comment.