Merge pull request #13844 from desktop/wow-such-undefined

Don't throw when repo couldn't be added
This commit is contained in:
Markus Olsson 2022-02-09 11:02:51 +01:00 committed by GitHub
commit c8fe707c21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -785,6 +785,11 @@ export class Dispatcher {
}
const addedRepositories = await this.addRepositories([path])
if (addedRepositories.length < 1) {
return null
}
const addedRepository = addedRepositories[0]
await this.selectRepository(addedRepository)