We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe8c5f9 commit 01a1768Copy full SHA for 01a1768
app/[locale]/[state]/analytics/components/filter-component.tsx
@@ -150,8 +150,12 @@ export function FilterComp({
150
// options: getRevenueOptions(),
151
options:
152
revenueGeographiesData?.data?.getDistrictRevCircle?.[regionName]?.map(
153
- (circle: { code: string; 'REVENUE CIRCLE': string }) => ({
154
- label: circle['REVENUE CIRCLE'],
+ (circle: { code: string; [key: string]: string }) => ({
+ label: circle['REVENUE CIRCLE']
155
+ ? circle['REVENUE CIRCLE']
156
+ : circle['TEHSIL']
157
+ ? circle['TEHSIL']
158
+ : circle['BLOCK'],
159
value: circle.code,
160
})
161
) || [],
0 commit comments