Flask-Web-App-Tutorial icon indicating copy to clipboard operation
Flask-Web-App-Tutorial copied to clipboard

nothing is being deleted. I think smth to do w buttons. The delete button can't be triggered

Open KhantMhueZawWin opened this issue 1 year ago • 0 comments

function deleteNote(noteId) { console.log('deleteNote function called with noteId:', noteId); fetch("/delete-note", { method: "POST", body: JSON.stringify({ noteId: noteId }), }).then((_res) => { window.location.href = "/"; }); }

i tried adding console.log in js nothing happens

KhantMhueZawWin avatar May 31 '24 06:05 KhantMhueZawWin