Skip to content

Commit

Permalink
Fixed offset issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bohdan-titan committed Dec 9, 2024
1 parent 58f81ce commit 1810ba7
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 1810ba7

Please sign in to comment.