mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 00:15:44 +01:00
add fetchifneeded to changesets view and use state
This commit is contained in:
@@ -37,8 +37,9 @@ export function fetchChangesetIfNeeded(
|
||||
repoName: string,
|
||||
id: string
|
||||
) {
|
||||
return function(dispatch: any) {
|
||||
if (shouldFetchChangeset(state, namespace, repoName, id)) {
|
||||
return function(dispatch: any, getState) {
|
||||
console.log(getState());
|
||||
if (shouldFetchChangeset(getState(), namespace, repoName, id)) {
|
||||
return dispatch(fetchChangeset(namespace, repoName, id));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user