diff --git a/pages/edit/_id.vue b/pages/edit/_id.vue index a86cf0d..8e96c1b 100644 --- a/pages/edit/_id.vue +++ b/pages/edit/_id.vue @@ -335,7 +335,11 @@ export default { } = JSON.parse(this.rawJSON) this.contentMetadata = { ...contentMetadata, - keywords: contentMetadata.keywords.split(',').filter(k => !!k), + keywords: ( + Array.isArray(contentMetadata.keywords) + ? contentMetadata.keywords + : contentMetadata.keywords.split(',') + ).filter(k => !!k), sameAs: contentMetadata.sameAs.filter(s => !!s), } this.contentFingerprints = contentFingerprints