Skip to content

Commit 496b2ee

Browse files
authored
Merge pull request #7 from Bostads-AB-Mimer/feature/mim-590-skapa-endpoint-for-att-hamta-underhallsenheter-baserat-pa
MIM-590: Create endpoint to fetch maintenance units on building code
2 parents d288ff3 + e1b52e3 commit 496b2ee

File tree

12 files changed

+1735
-781
lines changed

12 files changed

+1735
-781
lines changed

apps/property-tree/src/components/CommandPalette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ export function CommandPalette() {
142142
.with({ type: 'building' }, (v) => (
143143
<Building
144144
key={v.id}
145-
name={v.name}
145+
name={v.name ?? '-'}
146146
property={v.property}
147147
className={
148148
selectedIndex === index

apps/property-tree/src/components/views/BuildingView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export function BuildingView() {
9494
return (
9595
<div className="p-8 animate-in">
9696
<ViewHeader
97-
title={building.name}
97+
title={building.name ?? ''}
9898
subtitle={`Fastighet ${property?.designation}`}
9999
type="Byggnad"
100100
icon={Building}
@@ -122,7 +122,7 @@ export function BuildingView() {
122122
/>
123123
<StatCard
124124
title="Byggnadstyp"
125-
value={building.buildingType.name}
125+
value={building.buildingType.name ?? '-'}
126126
icon={Building}
127127
/>
128128
</Grid>

0 commit comments

Comments
 (0)