fix: dočasné skrytí podniku Šenk Šeříková
CI / Generate TypeScript types (push) Successful in 11s
CI / Server unit tests (push) Successful in 27s
CI / Build server (push) Successful in 29s
CI / Build client (push) Successful in 40s
CI / Playwright E2E tests (push) Failing after 2m44s
CI / Build and push Docker image (push) Skipped
CI / Notify (push) Successful in 2s

This commit is contained in:
2026-10-09 14:45:00 +02:00
parent 9fee4a1538
commit 49508dacd0
5 changed files with 45 additions and 24 deletions
+7 -3
View File
@@ -609,7 +609,7 @@ function App() {
} else {
content = <div className="restaurant-error">Chyba načtení dat</div>
}
return <Col md={6} lg={3} className='mt-3'>
return <Col md={6} lg className='mt-3'>
<div className="restaurant-card">
<div className="restaurant-header" style={{ cursor: canChangeChoice ? 'pointer' : 'default' }} onClick={() => doAddClickFoodChoice(location)}>
<div className="restaurant-header-content">
@@ -684,7 +684,7 @@ function App() {
</span>
</div>
}
<Row className='food-tables'>
<Row className='food-tables justify-content-center'>
{Object.keys(Restaurant).map(key => {
const locationKey = key as Restaurant;
return food[locationKey] && renderFoodTable(locationKey, food[locationKey]);
@@ -699,7 +699,11 @@ function App() {
{Object.entries(LunchChoice)
.filter(entry => {
const locationKey = entry[0] as Restaurant;
return !food[locationKey]?.closed;
// Podniky, pro které server nevrátil menu (dočasně uzavřené), nenabízíme
if (Object.keys(Restaurant).includes(locationKey) && !food?.[locationKey]) {
return false;
}
return !food?.[locationKey]?.closed;
})
.map(entry => <option key={entry[0]} value={entry[0]}>{getLunchChoiceName(entry[1])}</option>)}
</Form.Select>