File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
frontend/src/components/metadata Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,9 @@ export const CreateMetadataDefinition = (): JSX.Element => {
155155 delete data . fields [ i ] . config . options
156156 } else {
157157 let listOfOptions = data . fields [ i ] . config . options . split ( "," )
158+ // Remove any trailing whitespace from each list entry
159+ listOfOptions . forEach ( ( value , index , arr ) => arr [ index ] = value . trim ( ) )
160+
158161 data . fields [ i ] . config . options = listOfOptions
159162 }
160163 }
@@ -336,7 +339,7 @@ export const CreateMetadataDefinition = (): JSX.Element => {
336339 onChange = { ( event ) => {
337340 handleInputChange ( idx , "list" , event . target . value ) ;
338341 } }
339- /> } label = "Contains List " />
342+ /> } label = "Allow Many " />
340343 < FormControlLabel control = { < Checkbox
341344 checked = { input . required }
342345 onChange = { ( event ) => {
You can’t perform that action at this time.
0 commit comments