change
This commit is contained in:
@ -144,7 +144,7 @@ function updateRowWithNewData(row, weight, nutritionData) {
|
|||||||
entries = entries.filter(entry => entry.food !== rowData.food || parseFloat(entry.weight) !== weightToCompare);
|
entries = entries.filter(entry => entry.food !== rowData.food || parseFloat(entry.weight) !== weightToCompare);
|
||||||
localStorage.setItem('nutritionEntries', JSON.stringify(entries));
|
localStorage.setItem('nutritionEntries', JSON.stringify(entries));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function updateRemoveButtonState() {
|
function updateRemoveButtonState() {
|
||||||
const selectedRows = document.querySelectorAll('#nutrition-table .selected').length;
|
const selectedRows = document.querySelectorAll('#nutrition-table .selected').length;
|
||||||
|
Reference in New Issue
Block a user