Oprava pádů při načítání z menicka.cz
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful
This commit is contained in:
parent
7681584d11
commit
40c113a4c8
@ -173,6 +173,9 @@ export async function getRestaurantMenu(restaurant: Restaurant, date?: Date): Pr
|
|||||||
try {
|
try {
|
||||||
const senkSerikovaFood = await getMenuSenkSerikova(firstDay, mock);
|
const senkSerikovaFood = await getMenuSenkSerikova(firstDay, mock);
|
||||||
for (let i = 0; i < senkSerikovaFood.length; i++) {
|
for (let i = 0; i < senkSerikovaFood.length; i++) {
|
||||||
|
if (i >= weekMenu.length) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
weekMenu[i][restaurant]!.food = senkSerikovaFood[i];
|
weekMenu[i][restaurant]!.food = senkSerikovaFood[i];
|
||||||
if (senkSerikovaFood[i]?.length === 1 && senkSerikovaFood[i][0].name === 'Pro tento den nebylo zadáno menu.') {
|
if (senkSerikovaFood[i]?.length === 1 && senkSerikovaFood[i][0].name === 'Pro tento den nebylo zadáno menu.') {
|
||||||
weekMenu[i][restaurant]!.closed = true;
|
weekMenu[i][restaurant]!.closed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user