File tree Expand file tree Collapse file tree 1 file changed +21
-20
lines changed
Expand file tree Collapse file tree 1 file changed +21
-20
lines changed Original file line number Diff line number Diff line change @@ -235,26 +235,27 @@ const ResourcesTab = ({
235235 < p className = "text-sm text-gray-600 dark:text-gray-400" >
236236 { selectedTemplate . description }
237237 </ p >
238- { new UriTemplate ( selectedTemplate . uriTemplate ) . variableNames
239- ?. map ( ( key ) => {
240- return (
241- < div key = { key } >
242- < Label htmlFor = { key } > { key } </ Label >
243- < Combobox
244- id = { key }
245- placeholder = { `Enter ${ key } ` }
246- value = { templateValues [ key ] || "" }
247- onChange = { ( value ) =>
248- handleTemplateValueChange ( key , value )
249- }
250- onInputChange = { ( value ) =>
251- handleTemplateValueChange ( key , value )
252- }
253- options = { completions [ key ] || [ ] }
254- />
255- </ div >
256- ) ;
257- } ) }
238+ { new UriTemplate (
239+ selectedTemplate . uriTemplate ,
240+ ) . variableNames ?. map ( ( key ) => {
241+ return (
242+ < div key = { key } >
243+ < Label htmlFor = { key } > { key } </ Label >
244+ < Combobox
245+ id = { key }
246+ placeholder = { `Enter ${ key } ` }
247+ value = { templateValues [ key ] || "" }
248+ onChange = { ( value ) =>
249+ handleTemplateValueChange ( key , value )
250+ }
251+ onInputChange = { ( value ) =>
252+ handleTemplateValueChange ( key , value )
253+ }
254+ options = { completions [ key ] || [ ] }
255+ />
256+ </ div >
257+ ) ;
258+ } ) }
258259 < Button
259260 onClick = { handleReadTemplateResource }
260261 disabled = { Object . keys ( templateValues ) . length === 0 }
You can’t perform that action at this time.
0 commit comments