Dear Gitlab users, due to maintenance reasons, Gitlab will not be available on Thursday 30.09.2021 from 5:00 pm to approximately 5:30 pm.

Commit fb8f2036 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: use label not id in source combobox

parent f49e22fb
Pipeline #188416 passed with stages
in 23 minutes and 25 seconds
......@@ -46,9 +46,9 @@ interface SourceSelectProps {
* Source.
*/
function SourceComboBox(props: SourceSelectProps): JSX.Element {
const initialLabel = props.initialValues?.source?.id ?? ''
const initialLabel = props.initialValues?.source?.label ?? ''
const [searchTerm, setSearchTerm] = useState(initialLabel)
const debouncedSearchTerm = useDebouncedState(searchTerm, 150).trim()
const debouncedSearchTerm = useDebouncedState(searchTerm, 150)
const sources = useGetSources(
{ q: debouncedSearchTerm },
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment