Skip to content

Commit 01a1768

Browse files
committed
Fix/mobile-RC names not visible on selecting a district in filter component
1 parent fe8c5f9 commit 01a1768

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/[locale]/[state]/analytics/components/filter-component.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,12 @@ export function FilterComp({
150150
// options: getRevenueOptions(),
151151
options:
152152
revenueGeographiesData?.data?.getDistrictRevCircle?.[regionName]?.map(
153-
(circle: { code: string; 'REVENUE CIRCLE': string }) => ({
154-
label: circle['REVENUE CIRCLE'],
153+
(circle: { code: string; [key: string]: string }) => ({
154+
label: circle['REVENUE CIRCLE']
155+
? circle['REVENUE CIRCLE']
156+
: circle['TEHSIL']
157+
? circle['TEHSIL']
158+
: circle['BLOCK'],
155159
value: circle.code,
156160
})
157161
) || [],

0 commit comments

Comments
 (0)