We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9747eb commit 438437fCopy full SHA for 438437f
web/src/features/data-centers/DataCenterDetails.tsx
@@ -50,9 +50,8 @@ export default function DataCenterDetails(): JSX.Element {
50
const { estimatedPercentage } = selectedData || {};
51
const roundedEstimatedPercentage = round(estimatedPercentage ?? 0, 0);
52
53
- // Memoize the zone data to prevent unnecessary recalculations
54
const parentZone = useMemo(
55
- () => getAllZones(i18n.language)[zoneId].displayName,
+ () => (zoneId ? getAllZones(i18n.language)[zoneId].displayName : 'parent zone'),
56
[zoneId]
57
);
58
0 commit comments