File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
src/Pages/GlobalConfigurations/BuildInfra Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -256,7 +256,3 @@ export const DEFAULT_TOLERANCE_OPERATOR = BuildInfraToleranceOperatorType.EQUALS
256
256
export const INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X : Partial < Record < BuildInfraConfigTypes , true > > = {
257
257
[ BuildInfraConfigTypes . BUILD_TIMEOUT ] : true ,
258
258
}
259
-
260
- export const INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X_LIST : Readonly < BuildInfraConfigTypes [ ] > = Object . keys (
261
- INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X ,
262
- ) as BuildInfraConfigTypes [ ]
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ import {
40
40
CREATE_PROFILE_BASE_VALUE ,
41
41
BUILD_INFRA_DEFAULT_PLATFORM_NAME ,
42
42
BUILD_INFRA_LATEST_API_VERSION ,
43
- INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X_LIST ,
43
+ INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X ,
44
44
} from './constants'
45
45
import { getUniqueId } from '../../../Shared'
46
46
@@ -301,9 +301,9 @@ export const getBuildInfraProfilePayload = (
301
301
// Deleting un-supported locators in case target platform is not default platform
302
302
Object . entries ( configurations ) . forEach ( ( [ platformName , platformConfigurations ] ) => {
303
303
if ( platformName !== BUILD_INFRA_DEFAULT_PLATFORM_NAME ) {
304
- INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X_LIST . forEach ( ( locator ) => {
305
- configurations [ platformName ] = platformConfigurations . filter ( ( config ) => config . key !== locator )
306
- } )
304
+ configurations [ platformName ] = platformConfigurations . filter (
305
+ ( config ) => ! INFRA_CONFIG_NOT_SUPPORTED_BY_BUILD_X [ config . key ] ,
306
+ )
307
307
}
308
308
} )
309
309
You can’t perform that action at this time.
0 commit comments