Skip to content

Commit

Permalink
Merge pull request #7581 from cyril-ui-developer/create-role-binding-…
Browse files Browse the repository at this point in the history
…form-subject-name-kind-undefined

Bug 1908425: - Create Role Binding form subject type and name are undefined when All Project is selected
  • Loading branch information
openshift-merge-robot committed Dec 17, 2020
2 parents ac861cc + 7e933d0 commit b698266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/public/components/RBAC/bindings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export const RoleBindingsPage = ({
createPath = `/k8s/${
namespace
? `ns/${namespace}/rolebindings/~new?namespace=${namespace}`
: `cluster/rolebindings/~new?subjectName=${name}&subjectKind=${kind}`
: `cluster/rolebindings/~new${name && kind ? `?subjectName=${name}&subjectKind=${kind}` : ''}`
}`,
}) => (
<MultiListPage
Expand Down

0 comments on commit b698266

Please sign in to comment.