File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,6 @@ function CustomImageTags({
270
270
</ div >
271
271
< div className = "" style = { { width : '32px' , height : '20px' } } >
272
272
< Toggle
273
- disabled = { window . _env_ . FORCE_SECURITY_SCANNING && formData . enableCustomTag }
274
273
selected = { formData . enableCustomTag }
275
274
onSelect = { handleCustomTagToggle }
276
275
dataTestId = "create-build-pipeline-custom-tag-enabled-toggle"
Original file line number Diff line number Diff line change @@ -740,7 +740,10 @@ export function ProtectedConfigMapSecretDetails({
740
740
741
741
export const convertToValidValue = ( k : any ) : string => {
742
742
if ( k !== false && k !== true && k !== '' && ! isNaN ( Number ( k ) ) ) {
743
- return Number ( k ) . toString ( )
743
+ //Note: all long integers & floating values in "double quotes" with spaces will be handled in this check
744
+ // eg val: "123678765678756764\n" or val: "1234.67856756787676\n" or "1276767634.67856\n" to trim down \n
745
+ const replacePattern = / \s / g
746
+ return k . toString ( ) . replace ( replacePattern , '' )
744
747
}
745
748
return k . toString ( )
746
749
}
You can’t perform that action at this time.
0 commit comments