mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Pass down the repository type, because the RepositoryDto needs it for validation
This commit is contained in:
@@ -32,14 +32,15 @@ import { useHistory } from "react-router-dom";
|
||||
|
||||
type Props = {
|
||||
url: string;
|
||||
repositoryType: string;
|
||||
setImportPending: (pending: boolean) => void;
|
||||
};
|
||||
|
||||
const ImportRepositoryFromUrl: FC<Props> = ({ url, setImportPending }) => {
|
||||
const ImportRepositoryFromUrl: FC<Props> = ({ url, repositoryType, setImportPending }) => {
|
||||
const [repo, setRepo] = useState<RepositoryUrlImport>({
|
||||
name: "",
|
||||
namespace: "",
|
||||
type: "",
|
||||
type: repositoryType,
|
||||
contact: "",
|
||||
description: "",
|
||||
importUrl: "",
|
||||
|
||||
Reference in New Issue
Block a user