Fix total when manually insert/delete wish
parent
5b910e8124
commit
f149b48117
|
@ -129,6 +129,7 @@
|
||||||
const lastPulls = [...pulls];
|
const lastPulls = [...pulls];
|
||||||
lastPulls.splice(index, 0, newPull);
|
lastPulls.splice(index, 0, newPull);
|
||||||
pulls = lastPulls;
|
pulls = lastPulls;
|
||||||
|
total = pulls.length;
|
||||||
closeModal();
|
closeModal();
|
||||||
saveData();
|
saveData();
|
||||||
}
|
}
|
||||||
|
@ -146,7 +147,7 @@
|
||||||
const updated = pulls.slice();
|
const updated = pulls.slice();
|
||||||
updated.splice(index, 1);
|
updated.splice(index, 1);
|
||||||
pulls = updated;
|
pulls = updated;
|
||||||
|
total = pulls.length;
|
||||||
closeModal();
|
closeModal();
|
||||||
saveData();
|
saveData();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue