avoid build warning

Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2024-01-10 16:43:19 +01:00
parent 301955efb0
commit df4bc9def6
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Minor internal refactor
@@ -72,7 +72,7 @@ export const RepoUrlPickerHost = (props: {
>
<Select
native
disabled={hosts?.length === 1 ?? false}
disabled={hosts?.length === 1}
label="Host"
onChange={s => onChange(String(Array.isArray(s) ? s[0] : s))}
selected={host}