Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Fix Channels filter input appearing when clicking it (#5168)

Artur Pataaa9297df8796
diff --git a/CHANGELOG.md b/CHANGELOG.md
index e47866bf7d..bc270234c9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -43,6 +43,7 @@ All notable changes to this project will be documented in this file.
- `/api/v2/query` no longer returns a 500 when querying percentage metric without `visitors`
- Fix current visitors loading when viewing a dashboard with a shared link
- Fix Conversion Rate graph being unselectable when "Goal is ..." filter is within a segment
+- Fix Channels filter input appearing when clicking Sources in filter menu or clicking an applied "Channel is..." filter
## v2.1.5-rc.1 - 2025-01-17
diff --git a/assets/js/dashboard/site-context.tsx b/assets/js/dashboard/site-context.tsx
index ddb80b5267..2fcc8da52d 100644
--- a/assets/js/dashboard/site-context.tsx
+++ b/assets/js/dashboard/site-context.tsx
@@ -28,7 +28,6 @@ export function parseSiteFromDataset(dataset: DOMStringMap): PlausibleSite {
}
type FeatureFlags = {
- channels?: boolean
saved_segments?: boolean
saved_segments_fe?: boolean
}
diff --git a/assets/js/dashboard/stats/modals/filter-modal.js b/assets/js/dashboard/stats/modals/filter-modal.js
index ea38163709..db7b6900e9 100644
--- a/assets/js/dashboard/stats/modals/filter-modal.js
+++ b/assets/js/dashboard/stats/modals/filter-modal.js
@@ -140,9 +140,6 @@ class FilterModal extends React.Component {
getFilterGroups() {
const groups = FILTER_MODAL_TO_FILTER_GROUP[this.props.modalType]
- if (this.props.modalType === 'source' && !this.props.site.flags.channels) {
- return groups.filter((group) => group !== 'channel')
- }
return groups
}