Skip to content

Commit

Permalink
ui: Fix/display name for stats and identifiers (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
hhssb authored Dec 4, 2024
2 parents 59d863f + 4baad52 commit c14a2b0
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/src/app/dashboard/statistical-variable-count-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const StatisticalVariableCountCard = async () => {
const client = await createSupabaseSSRClient();

const { count, error } = await client
.from("stat_definition")
.from("stat_definition_active")
.select("", { count: "exact" })
.limit(0);

Expand Down
2 changes: 1 addition & 1 deletion app/src/app/reports/ReportsPageClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default function ReportsPageClient({
{ value: "count", label: "Count", title: "Number of enterprises" },
...(statDefinitions.map(({ code, name }) => ({
value: code!,
label: code!,
label: name!,
title: name!,
})) ?? []),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function StatisticalUnitTableHeader({
return (
<SortableTableHead name="name" label="Name" key={`h-cell-${headerCellSuffix(column)}`}>
<small className="flex">
{externalIdentTypes.map(({ code }) => code).join(" | ")}
{externalIdentTypes.map(({ name }) => name).join(" | ")}
</small>
</SortableTableHead>
);
Expand Down Expand Up @@ -92,7 +92,7 @@ export function StatisticalUnitTableHeader({
key={`h-cell-${headerCellSuffix(column)}`}
className="text-right hidden lg:table-cell [&>*]:capitalize"
name={statDefinition.code!}
label={statDefinition.code!}
label={statDefinition.name!}
/>
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function TopologyItem({
<TopologyItemInfo
key={statDefinition.id}
className="flex-1"
title={statDefinition.code || ""}
title={statDefinition.name!}
value={formattedValue}
/>
);
Expand Down

0 comments on commit c14a2b0

Please sign in to comment.