Add isParent boolean to tags
This commit is contained in:
@ -22,6 +22,7 @@ export async function createTag(formData: TagFormInput) {
|
||||
name: data.name,
|
||||
slug: tagSlug,
|
||||
description: data.description,
|
||||
isParent: data.isParent,
|
||||
showOnAnimalPage: data.showOnAnimalPage,
|
||||
parentId
|
||||
},
|
||||
|
||||
@ -32,7 +32,8 @@ export async function updateTag(id: string, rawData: TagFormInput) {
|
||||
data: {
|
||||
name: data.name,
|
||||
slug: tagSlug,
|
||||
description: data.description,
|
||||
description: data.description,
|
||||
isParent: data.isParent,
|
||||
showOnAnimalPage: data.showOnAnimalPage,
|
||||
parentId,
|
||||
categories: data.categoryIds
|
||||
|
||||
Reference in New Issue
Block a user