Skip to content

Commit a6394e1

Browse files
committed
Remove self-filter exclusions for continent and experience filters
1 parent 3e36116 commit a6394e1

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

src/services/duckdb-wasm.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,24 +1141,8 @@ class DuckDBWasmService {
11411141
// Country data (GpGjoO) is now stored as numeric codes directly in the database
11421142
// No special handling needed - use standard query logic
11431143
if (filters) {
1144-
// Remove self-filters to prevent charts from filtering themselves
1145-
// This allows charts to show all their data while other filters still apply
11461144
const modifiedFilters = { ...filters };
11471145

1148-
// Remove experience filter for experience question (ElR6d2)
1149-
if (questionId === 'ElR6d2' && modifiedFilters['experience']) {
1150-
if (import.meta.env.DEV) console.log(`Excluding experience self-filter for experience chart`);
1151-
delete modifiedFilters['experience'];
1152-
}
1153-
1154-
// Remove continent filter for country/map question (GpGjoO)
1155-
// The continent filter uses country codes (GpGjoO), so when displaying the map
1156-
// we need to exclude the continent filter to prevent self-filtering
1157-
if (questionId === 'GpGjoO' && modifiedFilters['continent']) {
1158-
if (import.meta.env.DEV) console.log(`Excluding continent self-filter for country map`);
1159-
delete modifiedFilters['continent'];
1160-
}
1161-
11621146
const whereClause = await this.buildFilterWhereClause(modifiedFilters);
11631147

11641148
if (questionTypes.isMultiSelect) {

0 commit comments

Comments
 (0)