Skip to content

Commit

Permalink
fix: adjust tag and link creation
Browse files Browse the repository at this point in the history
  • Loading branch information
thraizz committed Jan 27, 2024
1 parent f3d05b5 commit 4a9230e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down
4 changes: 2 additions & 2 deletions src/views/NewProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProjectCreationFormData>({
Expand Down

0 comments on commit 4a9230e

Please sign in to comment.