mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Convert conversationId int to string before making api request to bulk update file filters
This commit is contained in:
parent
3466f04992
commit
c9665fb20b
1 changed files with 1 additions and 2 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue