mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +01:00
fetch changeset correct
This commit is contained in:
@@ -11,7 +11,6 @@ type Props = {
|
||||
repository: Repository,
|
||||
repositories: Repository[],
|
||||
fetchChangesetIfNeeded: (
|
||||
state: Object,
|
||||
namespace: string,
|
||||
repoName: string,
|
||||
id: string
|
||||
@@ -28,7 +27,7 @@ class ChangesetView extends React.Component<State, Props> {
|
||||
const { fetchChangesetIfNeeded, repository } = this.props;
|
||||
const id = this.props.match.params.id;
|
||||
//state macht keinen Sinn?! repositories holen!
|
||||
fetchChangesetIfNeeded(null, repository.namespace, repository.name, id);
|
||||
fetchChangesetIfNeeded(repository.namespace, repository.name, id);
|
||||
}
|
||||
|
||||
render() {
|
||||
@@ -45,12 +44,11 @@ const mapStateToProps = (state, ownProps: Props) => {
|
||||
const mapDispatchToProps = dispatch => {
|
||||
return {
|
||||
fetchChangesetIfNeeded: (
|
||||
state: Object,
|
||||
namespace: string,
|
||||
repoName: string,
|
||||
id: string
|
||||
) => {
|
||||
dispatch(fetchChangesetIfNeeded(state, namespace, repoName, id));
|
||||
dispatch(fetchChangesetIfNeeded(namespace, repoName, id));
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user