Skip to content

Commit 9a21c2a

Browse files
committed
cleanup
1 parent e809b8e commit 9a21c2a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

lib/public/components/Filters/common/FilteringModel.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@ export class FilteringModel extends Observable {
123123
/**
124124
* Add new filter
125125
*
126+
* NOTE that the method has no effect if called more than once for the same key
127+
*
126128
* @param {string} key key of a new filter
127129
* @param {FilterModel} filter the new filter
128130
*/

lib/public/views/Runs/RunPerDataPass/RunsPerDataPassOverviewModel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { jsonFetch } from '../../../utilities/fetch/jsonFetch.js';
2424
import { mergeRemoteData } from '../../../utilities/mergeRemoteData.js';
2525
import { DetectorType } from '../../../domain/enums/DetectorTypes.js';
2626

27-
const CPASS_ALL_REGEX = /cpass\d+/;
27+
const ALL_CPASS_PRODUCTIONS_REGEX = /cpass\d+/;
2828

2929
/**
3030
* Runs Per Data Pass overview model
@@ -43,7 +43,7 @@ export class RunsPerDataPassOverviewModel extends FixedPdpBeamTypeRunsOverviewMo
4343
.builder()
4444
.sources([detectorsProvider.qc$, this._dataPass$])
4545
.apply((remoteDataList) => mergeRemoteData(remoteDataList)
46-
.apply({ Success: ([detectors, dataPass]) => CPASS_ALL_REGEX.test(dataPass.name)
46+
.apply({ Success: ([detectors, dataPass]) => ALL_CPASS_PRODUCTIONS_REGEX.test(dataPass.name)
4747
? detectors.filter(({ type }) => type !== DetectorType.AOT_GLO)
4848
: detectors,
4949
}))

0 commit comments

Comments
 (0)