diff --git a/frontend/src/components/Pages/AssetSelectionPage/AssetSelectionPage.tsx b/frontend/src/components/Pages/AssetSelectionPage/AssetSelectionPage.tsx index 7f8744a6d..66d7ffe0c 100644 --- a/frontend/src/components/Pages/AssetSelectionPage/AssetSelectionPage.tsx +++ b/frontend/src/components/Pages/AssetSelectionPage/AssetSelectionPage.tsx @@ -117,10 +117,14 @@ function InstallationPicker() { placeholder={TranslateText('Select installation')} onOptionsChange={({ selectedItems }) => { const selectedName = selectedItems[0] - setSelectedInstallation(selectedName) + validateInstallation(selectedName) + ? setSelectedInstallation(selectedName) + : setSelectedInstallation('') }} onInput={(e: React.ChangeEvent) => { - setSelectedInstallation(e.target.value ?? '') + validateInstallation(e.target.value) + ? setSelectedInstallation(e.target.value) + : setSelectedInstallation('') }} autoWidth={true} onFocus={(e) => { @@ -137,7 +141,7 @@ function InstallationPicker() {