File tree 1 file changed +8
-4
lines changed
client/src/app/pages/applications/components/application-form
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,13 @@ export const useApplicationFormHook = ({
258
258
} ) ;
259
259
260
260
const onValidSubmit = ( formValues : FormValues ) => {
261
+ let binaryValue = formValues . packaging
262
+ ? `${ formValues . group } :${ formValues . artifact } :${ formValues . version } :${ formValues . packaging } `
263
+ : `${ formValues . group } :${ formValues . artifact } :${ formValues . version } ` ;
264
+ if ( ! binaryValue . startsWith ( "mvn://" ) ) {
265
+ binaryValue = `mvn://${ binaryValue } ` ;
266
+ }
267
+
261
268
const payload : New < Application > = {
262
269
name : formValues . name . trim ( ) ,
263
270
description : formValues . description . trim ( ) ,
@@ -282,10 +289,7 @@ export const useApplicationFormHook = ({
282
289
path : formValues . rootPath . trim ( ) ,
283
290
}
284
291
: undefined ,
285
-
286
- binary : formValues . packaging
287
- ? `${ formValues . group } :${ formValues . artifact } :${ formValues . version } :${ formValues . packaging } `
288
- : `${ formValues . group } :${ formValues . artifact } :${ formValues . version } ` ,
292
+ binary : binaryValue ,
289
293
290
294
// Values not editable on the form but still need to be passed through
291
295
identities : application ?. identities ?? undefined ,
You can’t perform that action at this time.
0 commit comments