File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -12,11 +12,13 @@ export const createFilterObj = (
12
12
}
13
13
14
14
const key = keyExtractor ( item ) ;
15
+ const capitalized = key . charAt ( 0 ) . toUpperCase ( ) + key . slice ( 1 ) ;
16
+
15
17
if ( validKeys . includes ( key ) ) {
16
- if ( acc [ key ] !== undefined ) {
17
- acc [ key ] = acc [ key ] + 1 ;
18
+ if ( acc [ capitalized ] !== undefined ) {
19
+ acc [ capitalized ] = acc [ capitalized ] + 1 ;
18
20
} else {
19
- acc [ key ] = 1 ;
21
+ acc [ capitalized ] = 1 ;
20
22
}
21
23
}
22
24
Original file line number Diff line number Diff line change @@ -61,4 +61,4 @@ const QueryRun = curry(
61
61
export const QueryPipelineRun = QueryRun ( getPipelineRuns , PipelineRunModel ) ;
62
62
export const QueryTaskRun = QueryRun ( getTaskRuns , TaskRunModel ) ;
63
63
64
- export const pipelineRunTypes = [ PipelineRunType . BUILD as string , PipelineRunType . TEST as string ] ;
64
+ export const pipelineRunTypes = Object . values ( PipelineRunType ) . map ( ( type ) => type as string ) ;
You can’t perform that action at this time.
0 commit comments