Bill Edit Form: dovršen fetch

This commit is contained in:
2024-01-04 15:38:58 +01:00
parent f11987dd3a
commit 76ddedf652
7 changed files with 75 additions and 16 deletions

View File

@@ -28,11 +28,11 @@ export const Page = async () => {
return (
<>
{
location.yearMonth !== array[0].yearMonth && location.yearMonth !== array[ix-1].yearMonth ? <AddLocationButton /> : null
location.yearMonth !== array[0].yearMonth && location.yearMonth !== array[ix-1].yearMonth ? <AddLocationButton key={`add-loc-${location.yearMonth}`} /> : null
}
{
// show month title if it's the first location in the month
ix === 0 || location.yearMonth !== array[ix-1].yearMonth ? <MonthTitle yearMonth={location.yearMonth} /> : null
ix === 0 || location.yearMonth !== array[ix-1].yearMonth ? <MonthTitle key={location.yearMonth} yearMonth={location.yearMonth} /> : null
}
<LocationCard key={`${location._id}`} location={location} />
</>