Convert conversationId int to string before making api request to bulk update file filters

This commit is contained in:
sabaimran 2024-09-16 15:45:23 -07:00
parent 3466f04992
commit c9665fb20b

View file

@ -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`;
@ -177,7 +177,6 @@ export function modifyFileFilterForConversation(
})
.then((response) => response.json())
.then((data) => {
console.log("ADDEDFILES DATA: ", data);
setAddedFiles(data);
})
.catch((err) => {