From 3f582caf71c2b7fed221282602f0f69497df3d21 Mon Sep 17 00:00:00 2001 From: Martin Berka Date: Wed, 5 Mar 2025 22:14:00 +0100 Subject: [PATCH] Oprava buildu MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Oprava zobrazení názvu podniků Oprava datových typů Oprava opravy buildu --- client/src/App.tsx | 10 +++++----- client/src/api/Api.ts | 3 ++- client/src/api/Client.ts | 8 -------- types/openapi-ts.config.ts | 6 +++--- 4 files changed, 10 insertions(+), 17 deletions(-) delete mode 100644 client/src/api/Client.ts diff --git a/client/src/App.tsx b/client/src/App.tsx index 1bb8b7f..8bbafa4 100644 --- a/client/src/App.tsx +++ b/client/src/App.tsx @@ -68,11 +68,11 @@ function App() { if (!auth?.login) { return } - getData().then(({ data }) => { + getData().then(data => { if (data) { setData(data); - setDayIndex(data.weekIndex); - dayIndexRef.current = data.weekIndex; + setDayIndex(data.dayIndex); + dayIndexRef.current = data.dayIndex; setFood(data.menus); } }).catch(e => { @@ -363,7 +363,7 @@ function App() { content =

Chyba načtení dat

} return -

doAddClickFoodChoice(location)}>{location}

+

doAddClickFoodChoice(location)}>{LunchChoice[location]}

{menu?.lastUpdate && Poslední aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}} {content} @@ -651,7 +651,7 @@ function App() { } - } + || "Jejda, něco se nám nepovedlo :("}