Skip to content

Commit

Permalink
Convert conversationId int to string before making api request to bul…
Browse files Browse the repository at this point in the history
…k update file filters
  • Loading branch information
sabaimran committed Sep 16, 2024
1 parent 3466f04 commit c9665fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/interface/web/app/common/chatFunctions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export function modifyFileFilterForConversation(
const method = mode === "add" ? "POST" : "DELETE";

const body = {
conversation_id: conversationId,
conversation_id: String(conversationId),
filenames: filenames,
};
const addUrl = `/api/chat/conversation/file-filters/bulk`;
Expand All @@ -177,7 +177,6 @@ export function modifyFileFilterForConversation(
})
.then((response) => response.json())
.then((data) => {
console.log("ADDEDFILES DATA: ", data);
setAddedFiles(data);
})
.catch((err) => {
Expand Down

0 comments on commit c9665fb

Please sign in to comment.