Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/pages/ProjectNew.vue
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,7 @@ const userWithDurations = computed<ProjectMemberType[]>(() =>
users.map(user => ({
...user,
duration: {
since: {
year: new Date().getFullYear(),
semester: 0
},
since: formValues.duration.since,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copilot や agent などにも指摘されていますが、オブジェクトをそのまま代入すると参照型になると思います
値のコピーをするために内部のプリミティブな要素を展開するようにしたほうがいいと思います

agent の方で指摘されている null 合体演算子によるフォールバックについては、ここではしてもしなくても良いかと思います

until: undefined
}
}))
Expand Down
Loading