diff --git a/src/projects.ts b/src/projects.ts index ed400ae..c5e6ed7 100644 --- a/src/projects.ts +++ b/src/projects.ts @@ -65,8 +65,8 @@ export const useProjectStore = defineStore("projects", () => { title: values.title, description: values.description, textContent: values.content, - links: values.links, - tags: values.tags, + links: values.links.split(",").map((tag) => tag.trim()), + tags: values.tags.split(",").map((tag) => tag.trim()), projectId: "", userId: userUid, images: [], diff --git a/src/views/NewProject.vue b/src/views/NewProject.vue index 00c04ae..26b3255 100644 --- a/src/views/NewProject.vue +++ b/src/views/NewProject.vue @@ -10,8 +10,8 @@ export type ProjectCreationFormData = { title: string; description: string; content: string; - links: string[]; - tags: string[]; + links: string; + tags: string; }; const { handleSubmit, resetForm } = useForm({