diff --git a/app/soapbox/schemas/group.ts b/app/soapbox/schemas/group.ts index f735f4e87..f6b1a12a1 100644 --- a/app/soapbox/schemas/group.ts +++ b/app/soapbox/schemas/group.ts @@ -25,7 +25,7 @@ const groupSchema = z.object({ locked: z.boolean().catch(false), membership_required: z.boolean().catch(false), members_count: z.number().catch(0), - note: z.string().catch('').refine(note => note === '

' ? '' : note), + note: z.string().refine(note => note === '

' ? '' : note).catch(''), relationship: groupRelationshipSchema.nullable().catch(null), // Dummy field to be overwritten later statuses_visibility: z.string().catch('public'), uri: z.string().catch(''),