Skip to content

Commit

Permalink
🐛 Adjust custom target edit to reflect api changes
Browse files Browse the repository at this point in the history
Signed-off-by: ibolton336 <ibolton@redhat.com>
  • Loading branch information
ibolton336 committed Oct 25, 2023
1 parent ded98a9 commit bbbb61e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ export const CustomTargetForm: React.FC<CustomTargetFormProps> = ({
: target?.ruleset?.rules?.length
? "manual"
: "repository",
associatedCredentials: target?.ruleset?.identity?.name,
associatedCredentials: identities.find(
(identity) => identity.id === target?.ruleset?.identity?.id
)?.name,
repositoryType: target?.ruleset?.repository?.kind,
sourceRepository: target?.ruleset?.repository?.url,
branch: target?.ruleset?.repository?.branch,
Expand Down

0 comments on commit bbbb61e

Please sign in to comment.