Change 'uses' to 'groups' in Tag schema
This commit is contained in:
parent
e5cf1dfa85
commit
5d923842c5
3 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -29,7 +29,7 @@ const TagListItem = (props: ITagListItem) => {
|
|||
defaultMessage='Number of groups'
|
||||
/>
|
||||
:{' '}
|
||||
{tag.uses}
|
||||
{tag.groups}
|
||||
</Text>
|
||||
</Stack>
|
||||
</Link>
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue