1 parent
5b74c6da04
commit
c62e6ef52d
1 file changed
+1
-1
@@ -358,7 +358,7 @@ async function saveNote(){
|
||||
await api('notes','PUT',{title,content,tags},'&id='+editingId);
|
||||
noteId=editingId;toast('Note mise à jour');
|
||||
}else{
|
||||
const r=await api('notes','POST',JSON.stringify({title,content,tags,urls}));
|
||||
const r=await api('notes','POST',{title,content,tags,urls});
|
||||
noteId=r.id;toast('Note créée');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user