Skip to content

Commit

Permalink
fix: patch the node data for mood
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Dec 24, 2023
1 parent af23e17 commit c684c9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/manage-notes/list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export const ManageNoteListView = defineComponent({
<EditColumn
initialValue={data.value[index].mood ?? ''}
onSubmit={async (v) => {
await RESTManager.api.notes(row.id).put({
await RESTManager.api.notes(row.id).patch({
data: {
mood: v,
},
Expand All @@ -159,7 +159,7 @@ export const ManageNoteListView = defineComponent({
<EditColumn
initialValue={data.value[index].weather ?? ''}
onSubmit={async (v) => {
await RESTManager.api.notes(row.id).put({
await RESTManager.api.notes(row.id).patch({
data: {
weather: v,
},
Expand Down

0 comments on commit c684c9b

Please sign in to comment.