Skip to content

Commit

Permalink
show pre release with experimental feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
xgui3783 committed Oct 11, 2021
1 parent 5c805b3 commit 2cbbe4a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/util/pureConstant.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { flattenReducer } from 'common/util'
import { IVolumeTypeDetail, TAtlas, TId, TParc, TRegion, TRegionDetail, TSpaceFull, TSpaceSummary, TVolumeSrc } from "./siibraApiConstants/types";
import { MultiDimMap, recursiveMutate, mutateDeepMerge } from "./fn";
import { patchRegions } from './patchPureConstants'
import { environment } from "src/environments/environment";


const validVolumeType = new Set([
Expand Down Expand Up @@ -423,6 +424,8 @@ Raise/track issues at github repo: <a target = "_blank" href = "${this.repoUrl}"
}
).pipe(
map(arr => {
const { EXPERIMENTAL_FEATURE_FLAG } = environment
if (EXPERIMENTAL_FEATURE_FLAG) return arr
return arr.filter(atlas => !/pre.?release/i.test(atlas.name))
}),
shareReplay(1),
Expand Down

0 comments on commit 2cbbe4a

Please sign in to comment.