Oprava #7
All checks were successful
ci/woodpecker/push/workflow Pipeline was successful

This commit is contained in:
2025-02-27 21:19:38 +01:00
parent f9c7d647f7
commit 8dda6b1014
2 changed files with 22 additions and 2 deletions

View File

@@ -348,8 +348,9 @@ function App() {
const hideSoups = settings?.hideSoups;
content = <Table striped bordered hover>
<tbody style={{ cursor: 'pointer' }}>
{menu.food.filter(f => (hideSoups ? !f.isSoup : true)).map((f: any, index: number) =>
<tr key={index} onClick={() => doAddClickFoodChoice(location, hideSoups ? index + 1 : index)}>
{menu.food.map((f: Food, index: number) =>
(!hideSoups || !f.isSoup) &&
<tr key={f.name} onClick={() => doAddClickFoodChoice(location, index)}>
<td>{f.amount}</td>
<td>{f.name}</td>
<td>{f.price}</td>