diff --git a/extension/tasks/dependabotV2/index.ts b/extension/tasks/dependabotV2/index.ts index b1ee6025..3d9a3493 100644 --- a/extension/tasks/dependabotV2/index.ts +++ b/extension/tasks/dependabotV2/index.ts @@ -112,7 +112,7 @@ async function run() { } // If there are existing pull requests, run an update job for each one; this will resolve merge conflicts and close pull requests that are no longer needed - if (existingPullRequests && existingPullRequests.keys.length > 0) { + if (existingPullRequests && Object.keys(existingPullRequests).length > 0) { if (!taskInputs.skipPullRequests) { for (const pullRequestId in existingPullRequests) { const updatePullRequestJob = DependabotJobBuilder.newUpdatePullRequestJob(