Lädt…
; - } - if (isError || !equipment) { - return ( -- Gegenstand konnte nicht geladen werden. -
- ); + if (equipmentQuery.isLoading || equipmentQuery.isError || !equipment) { + return
@@ -91,7 +86,7 @@ export default function EquipmentDetailPage() {
value ? updateMutation.mutate(value as EquipmentCondition) : undefined
}
>
- Lädt…
- Schleuderung konnte nicht geladen werden.
-
{extraction.harvests.map((entry) => (
Lädt…
; - } - if (isError || !harvest) { - return ( -- Ernte konnte nicht geladen werden. -
- ); + if (harvestQuery.isLoading || harvestQuery.isError || !harvest) { + returnHonigsorte: {harvest.honeyType}
: null} - {harvest.netWeight !== null ?Nettogewicht: {harvest.netWeight} kg
: null} - {harvest.honeySuperCount !== null ? ( -Honigräume: {harvest.honeySuperCount}
- ) : null} - {harvest.notes ?Notizen: {harvest.notes}
: null} -Beteiligte Völker
--
- {harvest.colonies.map((entry) => (
-
- {entry.colony.code} - ))} -
-
+ {harvest.honeyType ? (
+ <>
+
- Honigsorte +
- {harvest.honeyType} + > + ) : null} + {harvest.netWeight !== null ? ( + <> +
- Nettogewicht +
- {harvest.netWeight} kg + > + ) : null} + {harvest.honeySuperCount !== null ? ( + <> +
- Honigräume +
- {harvest.honeySuperCount} + > + ) : null} +
Notizen: {harvest.notes}
: null} +Beteiligte Völker
+-
+ {harvest.colonies.map((entry) => (
+
- + + {entry.colony.code} + + + ))} +