Skip to content

Commit

Permalink
Fix Edit Pipeline option link on Pipeline details page
Browse files Browse the repository at this point in the history
  • Loading branch information
vikram-raj authored and openshift-cherrypick-robot committed Jul 3, 2024
1 parent 046087a commit 5162e1b
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/pipelines-details/PipelineDetailsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,9 @@ const PipelineDetailsPage = () => {
namespace,
});

const editURL = namespace
? `/k8s/ns/${namespace}/${getReferenceForModel(
PipelineModel,
)}/${encodeURIComponent(name)}/yaml`
: `/k8s/cluster/${getReferenceForModel(PipelineModel)}/${encodeURIComponent(
name,
)}/yaml`;
const editURL = `/k8s/ns/${namespace}/${getReferenceForModel(
PipelineModel,
)}/${encodeURIComponent(name)}/builder`;

const resourceTitleFunc = React.useMemo(() => {
return (
Expand Down

0 comments on commit 5162e1b

Please sign in to comment.