File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
src/management/identities/validations Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,21 @@ export class IdentitiesValidationService {
186186 this . logger . error ( `Error reading dynamic config files: ${ error . message } ` ) ;
187187 }
188188
189- // Combine the file arrays
190- const files = [ ...hardConfigFiles , ...dynamicConfigFiles ] ;
189+ // const files = [...hardConfigFiles, ...dynamicConfigFiles];
190+ const filesMap = new Map ( ) ;
191+
192+ for ( const target of dynamicConfigFiles ) {
193+ filesMap . set ( target . file , target ) ;
194+ }
195+
196+ for ( const target of hardConfigFiles ) {
197+ if ( filesMap . has ( target . file ) ) {
198+ continue ;
199+ }
200+ filesMap . set ( target . file , target ) ;
201+ }
202+
203+ const files = Array . from ( filesMap . values ( ) ) ;
191204
192205 const result = [ ] ;
193206 for ( const fileObj of files ) {
You can’t perform that action at this time.
0 commit comments