Skip to content

Commit

Permalink
Don't show private builds by default
Browse files Browse the repository at this point in the history
  • Loading branch information
MaXal committed Jul 18, 2023
1 parent cc97adf commit 2b7d70b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export class PrivateBuildConfigurator extends DimensionConfigurator {

configureQuery(query: DataQuery, configuration: DataQueryExecutorConfiguration): boolean {
const value = this.selected.value
const filter: DataQueryFilter = { f: this.name, v: "" }
if (value == null || value.length === 0) {
query.addFilter(filter)
return true
}

const filter: DataQueryFilter = { f: this.name, v: "" }
const values = Array.isArray(value) ? ["", ...value] : ["", value]
configureQueryProducer(configuration, filter, values)
query.addFilter(filter)
Expand Down

0 comments on commit 2b7d70b

Please sign in to comment.