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({
270270 </ div >
271271 < div className = "" style = { { width : '32px' , height : '20px' } } >
272272 < Toggle
273- disabled = { window . _env_ . FORCE_SECURITY_SCANNING && formData . enableCustomTag }
274273 selected = { formData . enableCustomTag }
275274 onSelect = { handleCustomTagToggle }
276275 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({
740740
741741export const convertToValidValue = ( k : any ) : string => {
742742 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 , '' )
744747 }
745748 return k . toString ( )
746749}
You can’t perform that action at this time.
0 commit comments