fix: presence erroring on update if no remote url (#1010)
This commit is contained in:
parent
5f790bda97
commit
019154023b
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ export async function activity(previous: ActivityPayload = {}) {
|
|||
}
|
||||
|
||||
if (!removeRemoteRepository && git?.repositories.length) {
|
||||
let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0].fetchUrl;
|
||||
let repo = git.repositories.find((repo) => repo.ui.selected)?.state.remotes[0]?.fetchUrl;
|
||||
|
||||
if (repo) {
|
||||
if (repo.startsWith('git@')) {
|
||||
|
|
Loading…
Reference in a new issue