mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-26 11:58:28 +02:00
Fix user groups page when a persona is deleted
This commit is contained in:
@@ -21,6 +21,10 @@ function PersonaTypeDisplay({ persona }: { persona: Persona }) {
|
||||
return <Text>Global</Text>;
|
||||
}
|
||||
|
||||
if (persona.groups.length > 0 || persona.users.length > 0) {
|
||||
return <Text>Shared</Text>;
|
||||
}
|
||||
|
||||
return <Text>Personal {persona.owner && <>({persona.owner.email})</>}</Text>;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user