diff --git a/lib/workers/repository/update/branch/get-updated.ts b/lib/workers/repository/update/branch/get-updated.ts index 70882094557b1e10fbee628c972aa1e1d81605c0..e3dbf85f7767010e1828e4802d68cbb1642e500c 100644 --- a/lib/workers/repository/update/branch/get-updated.ts +++ b/lib/workers/repository/update/branch/get-updated.ts @@ -379,8 +379,12 @@ function patchConfigForArtifactsUpdate( const packageFile = managerPackageFiles.find( (p) => p.packageFile === packageFileName, ); - if (packageFile) { - updatedConfig.lockFiles ??= packageFile.lockFiles; + if ( + packageFile && + is.nonEmptyArray(updatedConfig.lockFiles) && + is.nonEmptyArray(packageFile.lockFiles) + ) { + updatedConfig.lockFiles = packageFile.lockFiles; } } return updatedConfig;