mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-20 13:05:49 +02:00
@@ -331,7 +331,7 @@ export const togglePersonaVisibility = async (
|
||||
personaId: number,
|
||||
isVisible: boolean
|
||||
) => {
|
||||
const response = await fetch(`/api/persona/${personaId}/visible`, {
|
||||
const response = await fetch(`/api/admin/persona/${personaId}/visible`, {
|
||||
method: "PATCH",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
@@ -306,7 +306,12 @@ export function AssistantsList({
|
||||
|
||||
const [currentlyVisibleAssistants, setCurrentlyVisibleAssistants] = useState<
|
||||
Persona[]
|
||||
>(orderAssistantsForUser(visibleAssistants, user));
|
||||
>([]);
|
||||
|
||||
useEffect(() => {
|
||||
const orderedAssistants = orderAssistantsForUser(visibleAssistants, user);
|
||||
setCurrentlyVisibleAssistants(orderedAssistants);
|
||||
}, [assistants, user]);
|
||||
|
||||
const ownedButHiddenAssistants = getUserCreatedAssistants(
|
||||
user,
|
||||
|
Reference in New Issue
Block a user