Skip to content

Commit

Permalink
initial value parsing
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Bolton <[email protected]>
  • Loading branch information
ibolton336 committed Jun 19, 2024
1 parent c35b634 commit a48bc7c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,12 @@ export const useApplicationFormHook = ({
application: Application | null,
fieldName: string
) => {
const fieldList = application?.binary?.split(":") || [];
const binaryString = application?.binary?.startsWith("mvn://")
? application.binary.substring(6)
: application?.binary;

const fieldList = binaryString?.split(":") || [];

switch (fieldName) {
case "group":
return fieldList[0] || "";
Expand Down

0 comments on commit a48bc7c

Please sign in to comment.