Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SSHOC
sshoc-marketplace-frontend
Commits
fb8f2036
Commit
fb8f2036
authored
Apr 15, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/item/SourceFormSection/SourceFormSection.tsx
View file @
fb8f2036
...
...
@@ -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
},
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment