Skip to content

Commit afe33a9

Browse files
committed
Fix ESLint errors: remove self-assignments and any type annotation
1 parent 34bfc23 commit afe33a9

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

exec/java-exec/src/main/resources/webapp/src/components/visualization/ChartPreview.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,8 @@ export default function ChartPreview({
437437
// Multi-select or single state: use first selected state's file
438438
// (User can filter data to their states, so no need for all-states)
439439
scopeKey = mapScopes[0];
440-
} else if (scopeKey.includes('-zipcodes')) {
441-
// Single state ZIP code selected
442-
scopeKey = scopeKey; // Use the specific state file
443440
}
441+
// else: single state ZIP code already in scopeKey (no need to reassign)
444442

445443
const mapDef = getMapDef(scopeKey);
446444
if (!mapDef) {
@@ -1787,10 +1785,8 @@ export default function ChartPreview({
17871785
// Multi-select: use first selected state's file
17881786
// User's data will naturally be filtered to their selected states
17891787
scopeKey = mapScopes[0];
1790-
} else if (scopeKey.includes('-zipcodes')) {
1791-
// Single state ZIP code already selected
1792-
scopeKey = scopeKey;
17931788
}
1789+
// else: single state ZIP code already in scopeKey (no need to reassign)
17941790

17951791
const mapDef = getMapDef(scopeKey);
17961792
if (!mapDef) {

exec/java-exec/src/main/resources/webapp/src/components/visualization/ColumnMapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ export default function ColumnMapper({ columns, chartType, config, onChange }: C
721721

722722
// Get state ZIP code options for multi-select
723723
const stateZipOptions = GEO_SCOPE_OPTIONS
724-
.find((opt: any) => opt.label === 'US ZIP Codes (by State)')
724+
.find((opt) => opt.label === 'US ZIP Codes (by State)')
725725
?.options || [];
726726

727727
if (isMultiSelectScope && stateZipOptions.length > 0) {

0 commit comments

Comments
 (0)