mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
refresh router -> refresh assistants (#3271)
This commit is contained in:
parent
07dfde2209
commit
9c0cc94f15
@ -405,7 +405,7 @@ export function AssistantEditor({
|
||||
message: `"${assistant.name}" has been added to your list.`,
|
||||
type: "success",
|
||||
});
|
||||
router.refresh();
|
||||
await refreshAssistants();
|
||||
} else {
|
||||
setPopup({
|
||||
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()}`,
|
||||
});
|
||||
setFinalPersonas(assistants);
|
||||
router.refresh();
|
||||
await refreshAssistants();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -151,7 +151,7 @@ export function PersonasTable() {
|
||||
persona.is_visible
|
||||
);
|
||||
if (response.ok) {
|
||||
router.refresh();
|
||||
await refreshAssistants();
|
||||
} else {
|
||||
setPopup({
|
||||
type: "error",
|
||||
@ -183,7 +183,7 @@ export function PersonasTable() {
|
||||
onClick={async () => {
|
||||
const response = await deletePersona(persona.id);
|
||||
if (response.ok) {
|
||||
router.refresh();
|
||||
await refreshAssistants();
|
||||
} else {
|
||||
alert(
|
||||
`Failed to delete persona - ${await response.text()}`
|
||||
|
Loading…
x
Reference in New Issue
Block a user