mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
try to use getState
This commit is contained in:
@@ -37,7 +37,7 @@ export function fetchChangesetIfNeeded(
|
||||
repoName: string,
|
||||
id: string
|
||||
) {
|
||||
return function(dispatch: any, getState) {
|
||||
return (dispatch: any, getState: any) => {
|
||||
console.log(getState());
|
||||
if (shouldFetchChangeset(getState(), namespace, repoName, id)) {
|
||||
return dispatch(fetchChangeset(namespace, repoName, id));
|
||||
|
||||
Reference in New Issue
Block a user