Oprava buildu
Some checks failed
ci/woodpecker/push/workflow Pipeline failed

This commit is contained in:
2025-03-05 22:14:00 +01:00
parent e55ee7c11e
commit c9fa710070
4 changed files with 10 additions and 17 deletions

View File

@@ -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 = <h3>Chyba načtení dat</h3>
}
return <Col md={12} lg={3} className='mt-3'>
<h3 style={{ cursor: 'pointer' }} onClick={() => doAddClickFoodChoice(location)}>{location}</h3>
<h3 style={{ cursor: 'pointer' }} onClick={() => doAddClickFoodChoice(location)}>{LunchChoice[location]}</h3>
{menu?.lastUpdate && <small>Poslední aktualizace: {getHumanDateTime(new Date(menu.lastUpdate))}</small>}
{content}
</Col>
@@ -651,7 +651,7 @@ function App() {
</div>
}
</div>
</>}
</> || "Jejda, něco se nám nepovedlo :("}
</div>
<Footer />
<NoteModal isOpen={noteModalOpen} onClose={() => setNoteModalOpen(false)} onSave={saveNote} />