mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-19 20:24:32 +02:00
Fix persona refresh
This commit is contained in:
@@ -1,12 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import {
|
||||
BooleanFormField,
|
||||
TextArrayField,
|
||||
TextFormField,
|
||||
} from "@/components/admin/connectors/Field";
|
||||
import { DocumentSet } from "@/lib/types";
|
||||
import { Button, Divider, Text, Title } from "@tremor/react";
|
||||
import { Button, Divider } from "@tremor/react";
|
||||
import {
|
||||
ArrayHelpers,
|
||||
ErrorMessage,
|
||||
@@ -215,7 +210,7 @@ export function PersonaEditor({
|
||||
});
|
||||
}
|
||||
if (response.ok) {
|
||||
router.push("/admin/personas");
|
||||
router.push(`/admin/personas?u=${Date.now()}`);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,6 @@ import {
|
||||
TableCell,
|
||||
} from "@tremor/react";
|
||||
import { Persona } from "./interfaces";
|
||||
import Link from "next/link";
|
||||
import { EditButton } from "@/components/EditButton";
|
||||
import { useRouter } from "next/navigation";
|
||||
|
||||
|
@@ -16,7 +16,7 @@ export function DeletePersonaButton({ personaId }: { personaId: number }) {
|
||||
onClick={async () => {
|
||||
const response = await deletePersona(personaId);
|
||||
if (response.ok) {
|
||||
router.push("/admin/personas");
|
||||
router.push(`/admin/personas?u=${Date.now()}`);
|
||||
} else {
|
||||
alert(`Failed to delete persona - ${await response.text()}`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user