Fix meta tags robots form templates

This commit is contained in:
Julien Nahum 2023-09-09 12:09:33 +02:00
parent a81aa6a9e7
commit 6e48cf6d4c
1 changed files with 5 additions and 2 deletions

View File

@ -264,7 +264,10 @@ export default {
return this.template.image_url
},
metaTags () {
return (this.template && this.template.publicly_listed) ? [] : [{ name: 'robots', content: 'noindex' }]
if (!this.template) {
return [];
}
return this.template.publicly_listed ? [] : [{ name: 'robots', content: 'noindex' }]
},
createFormWithTemplateUrl () {
if(this.authenticated) {