Change 'uses' to 'groups' in Tag schema

This commit is contained in:
Chewbacca 2023-04-26 09:17:31 -04:00
parent e5cf1dfa85
commit 5d923842c5
3 changed files with 3 additions and 3 deletions

View file

@ -134,7 +134,7 @@ const GroupTagListItem = (props: IGroupMemberListItem) => {
{intl.formatMessage(messages.total)}:
{' '}
<Text size='sm' theme='inherit' weight='semibold' tag='span'>
{shortNumberFormat(tag.uses)}
{shortNumberFormat(tag.groups)}
</Text>
</Text>
</Stack>

View file

@ -29,7 +29,7 @@ const TagListItem = (props: ITagListItem) => {
defaultMessage='Number of groups'
/>
:{' '}
{tag.uses}
{tag.groups}
</Text>
</Stack>
</Link>

View file

@ -3,7 +3,7 @@ import z from 'zod';
const groupTagSchema = z.object({
id: z.string(),
name: z.string(),
uses: z.number().optional(),
groups: z.number().optional(),
url: z.string().optional(),
pinned: z.boolean().optional().catch(false),
visible: z.boolean().optional().default(true),