Skip to content

Commit 6bc6dd0

Browse files
committed
move one pending call into ungitconfig due to there's some condition
1 parent 689e5b0 commit 6bc6dd0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src-react/actions/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { pending } from './common';
44

55
export function bootstrap() {
66
return dispatch => {
7-
dispatch(pending(4));
7+
dispatch(pending(3));
88
dispatch(fetchUngitConfig());
99
dispatch(fetchLatestVersion());
1010
dispatch(fetchGitVersion());

src-react/actions/ungit-config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as types from 'constants/action-types';
22
import { fetchUserConfig } from './user-config';
3-
import { apiError } from './common';
3+
import { apiError, pending } from './common';
44

55
export function fetchUngitConfig() {
66
return dispatch => {
@@ -10,6 +10,7 @@ export function fetchUngitConfig() {
1010
.then(response => response.json())
1111
.then(json => {
1212
if (!json.config.bugtracking) {
13+
dispatch(pending());
1314
dispatch(fetchUserConfig());
1415
}
1516
dispatch(receiveUngitConfig(json));

0 commit comments

Comments
 (0)