Skip to content

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

@KhantMhueZawWin

Description

@KhantMhueZawWin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions