upd: fix poll editing

This commit is contained in:
Mar0xy 2023-10-04 02:24:20 +02:00
parent 19e077466a
commit 4ee3e45bf7
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
2 changed files with 39 additions and 16 deletions

View file

@ -72,19 +72,12 @@ export function useNoteCapture(props: {
break;
}
case 'updated': {
note.value.updatedAt = new Date().toISOString();
note.value.cw = body.cw;
note.value.text = body.text;
break;
}
case 'deleted': {
props.isDeletedRef.value = true;
break;
}
case "updated": {
case 'updated': {
const editedNote = await os.api("notes/show", {
noteId: id,
});