Skip to content

Commit 33a8e76

Browse files
committed
waypoints: fix waypoint deletion
1 parent 22fb148 commit 33a8e76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/waypoints/waypoints.app.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,13 +550,12 @@ function showCard() {
550550
function remove(c) {
551551
let card = wp[c];
552552
let name = card["name"];
553-
print("Remove?", card, name);
554553

555554
E.showPrompt(name,{
556555
title:"Delete",
557556
}).then(function(v) {
558557
if (v) {
559-
wp.splice(card, 1);
558+
wp.splice(c, 1);
560559
writeWP();
561560
mainMenu();
562561
} else {

0 commit comments

Comments
 (0)