Merge pull request #22182 from backstage/freben/w

avoid build warning
This commit is contained in:
Fredrik Adelöw
2024-01-10 20:55:36 +01:00
committed by GitHub
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}