mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-16 10:16:16 +01:00
Fix create and filter link for namespace
This commit is contained in:
@@ -112,8 +112,6 @@ class Overview extends React.Component<Props> {
|
||||
render() {
|
||||
const { error, loading, showCreateButton, namespace, namespaces, t } = this.props;
|
||||
|
||||
const link = namespace ? `repos/${namespace}` : "repos";
|
||||
|
||||
const namespacesToRender = namespaces ? ["", ...namespaces._embedded.namespaces.map(n => n.namespace).sort()] : [];
|
||||
|
||||
return (
|
||||
@@ -125,7 +123,7 @@ class Overview extends React.Component<Props> {
|
||||
currentGroup={namespace}
|
||||
groups={namespacesToRender}
|
||||
groupSelected={this.namespaceSelected}
|
||||
link={link}
|
||||
link="repos"
|
||||
label={t("overview.createButton")}
|
||||
testId="repository-overview"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user