mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 03:48:49 +02:00
refresh router -> refresh assistants (#3271)
This commit is contained in:
@@ -405,7 +405,7 @@ export function AssistantEditor({
|
|||||||
message: `"${assistant.name}" has been added to your list.`,
|
message: `"${assistant.name}" has been added to your list.`,
|
||||||
type: "success",
|
type: "success",
|
||||||
});
|
});
|
||||||
router.refresh();
|
await refreshAssistants();
|
||||||
} else {
|
} else {
|
||||||
setPopup({
|
setPopup({
|
||||||
message: `"${assistant.name}" could not be added to your list.`,
|
message: `"${assistant.name}" could not be added to your list.`,
|
||||||
|
@@ -90,7 +90,7 @@ export function PersonasTable() {
|
|||||||
message: `Failed to update persona order - ${await response.text()}`,
|
message: `Failed to update persona order - ${await response.text()}`,
|
||||||
});
|
});
|
||||||
setFinalPersonas(assistants);
|
setFinalPersonas(assistants);
|
||||||
router.refresh();
|
await refreshAssistants();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ export function PersonasTable() {
|
|||||||
persona.is_visible
|
persona.is_visible
|
||||||
);
|
);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
router.refresh();
|
await refreshAssistants();
|
||||||
} else {
|
} else {
|
||||||
setPopup({
|
setPopup({
|
||||||
type: "error",
|
type: "error",
|
||||||
@@ -183,7 +183,7 @@ export function PersonasTable() {
|
|||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
const response = await deletePersona(persona.id);
|
const response = await deletePersona(persona.id);
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
router.refresh();
|
await refreshAssistants();
|
||||||
} else {
|
} else {
|
||||||
alert(
|
alert(
|
||||||
`Failed to delete persona - ${await response.text()}`
|
`Failed to delete persona - ${await response.text()}`
|
||||||
|
Reference in New Issue
Block a user