Fix total when manually insert/delete wish

pull/1/head
Made Baruna 2021-04-23 05:16:28 +08:00
parent 5b910e8124
commit f149b48117
No known key found for this signature in database
GPG Key ID: 5AA5DA16AA5DCEAD
1 changed files with 2 additions and 1 deletions

View File

@ -129,6 +129,7 @@
const lastPulls = [...pulls];
lastPulls.splice(index, 0, newPull);
pulls = lastPulls;
total = pulls.length;
closeModal();
saveData();
}
@ -146,7 +147,7 @@
const updated = pulls.slice();
updated.splice(index, 1);
pulls = updated;
total = pulls.length;
closeModal();
saveData();
}