From 4b854cf8ab704845774390df633b610e02664be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 13 Nov 2021 10:54:04 +0100 Subject: [PATCH] Fix issue with blank entry if default branch is hidden (#529) --- src/components/dialogs/hacs-install-dialog.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/dialogs/hacs-install-dialog.ts b/src/components/dialogs/hacs-install-dialog.ts index 8d9af3b8..ee36ac2a 100644 --- a/src/components/dialogs/hacs-install-dialog.ts +++ b/src/components/dialogs/hacs-install-dialog.ts @@ -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]] + ) : [], }, ];