Skip to content

Commit

Permalink
Fix issue with blank entry if default branch is hidden (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored Nov 13, 2021
1 parent 69279a7 commit 4b854cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/dialogs/hacs-install-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ export class HacsInstallDialog extends HacsDialogBase {
this._repository.version_or_commit === "version"
? this._repository.releases
.map((version) => [version, version])
.concat([
.concat(
this._repository.full_name === "hacs/integration" ||
this._repository.hide_default_branch
? ["", ""]
: [this._repository.default_branch, this._repository.default_branch],
])
this._repository.hide_default_branch
? []
: [[this._repository.default_branch, this._repository.default_branch]]
)
: [],
},
];
Expand Down

0 comments on commit 4b854cf

Please sign in to comment.