mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-09 13:25:11 +00:00
Convert conversationId int to string before making api request to bulk update file filters
This commit is contained in:
@@ -163,7 +163,7 @@ export function modifyFileFilterForConversation(
|
|||||||
const method = mode === "add" ? "POST" : "DELETE";
|
const method = mode === "add" ? "POST" : "DELETE";
|
||||||
|
|
||||||
const body = {
|
const body = {
|
||||||
conversation_id: conversationId,
|
conversation_id: String(conversationId),
|
||||||
filenames: filenames,
|
filenames: filenames,
|
||||||
};
|
};
|
||||||
const addUrl = `/api/chat/conversation/file-filters/bulk`;
|
const addUrl = `/api/chat/conversation/file-filters/bulk`;
|
||||||
@@ -177,7 +177,6 @@ export function modifyFileFilterForConversation(
|
|||||||
})
|
})
|
||||||
.then((response) => response.json())
|
.then((response) => response.json())
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
console.log("ADDEDFILES DATA: ", data);
|
|
||||||
setAddedFiles(data);
|
setAddedFiles(data);
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user