diff --git a/scm-ui/ui-components/src/CardColumn.tsx b/scm-ui/ui-components/src/CardColumn.tsx index fd84b9b11e..f7e7570d1d 100644 --- a/scm-ui/ui-components/src/CardColumn.tsx +++ b/scm-ui/ui-components/src/CardColumn.tsx @@ -5,7 +5,7 @@ import { Link } from "react-router-dom"; type Props = { title: string; - description: string; + description?: string; avatar: ReactNode; contentRight?: ReactNode; footerLeft: ReactNode; diff --git a/scm-ui/ui-components/src/forms/DropDown.tsx b/scm-ui/ui-components/src/forms/DropDown.tsx index b65c48b49d..97b31d4413 100644 --- a/scm-ui/ui-components/src/forms/DropDown.tsx +++ b/scm-ui/ui-components/src/forms/DropDown.tsx @@ -13,10 +13,15 @@ type Props = { class DropDown extends React.Component { render() { const { options, optionValues, preselectedOption, className, disabled } = this.props; + + if (preselectedOption && !options.includes(preselectedOption)) { + options.unshift(preselectedOption) + } + return (