Change in newPrice assign
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
William Buezas 2024-04-22 09:42:28 -03:00
parent 2105d7870b
commit dce48b536d
1 changed files with 5 additions and 7 deletions

View File

@ -318,16 +318,14 @@ const addRow = () => {
const daysInWeek = 7;
const nextWeek = new Date(today.getTime() + daysInWeek * millisecsInDay);
fixedPricesOriginalData.value.push({
const newPrice = {
started: today,
ended: nextWeek,
hasMinPrice: 0,
});
fixedPrices.value.push({
started: today,
ended: nextWeek,
hasMinPrice: 0,
});
};
fixedPricesOriginalData.value.push({ ...newPrice });
fixedPrices.value.push({ ...newPrice });
return;
}