fix: filter same tags in editor (#457)
This commit is contained in:
@@ -207,8 +207,10 @@ export default function SubdomainEditor() {
|
||||
if (check) {
|
||||
toast.error(check)
|
||||
} else {
|
||||
const uniqueTags = Array.from(new Set(values.tags.split(","))).join(",")
|
||||
createOrUpdatePage.mutate({
|
||||
...values,
|
||||
tags: uniqueTags,
|
||||
slug: values.slug || defaultSlug,
|
||||
siteId: subdomain,
|
||||
...(visibility === PageVisibilityEnum.Draft ? {} : { pageId: pageId }),
|
||||
|
||||
Reference in New Issue
Block a user