Skip to content

Commit

Permalink
fix(deployments): only fetch feed source deployments if module enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
landonreed committed Nov 27, 2018
1 parent 5b5ab71 commit 7404578
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/manager/actions/feeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import {createAction, type ActionType} from 'redux-actions'

import {createVoidPayloadAction, secureFetch} from '../../common/actions'
import {isModuleEnabled} from '../../common/util/config'
import {fetchFeedSourceDeployments} from './deployments'
import {fetchSnapshots} from '../../editor/actions/snapshots'
import {fetchProject, fetchProjectWithFeeds} from './projects'
Expand Down Expand Up @@ -160,7 +161,7 @@ function fetchRelatedTables (feedSource: Feed) {
return function (dispatch: dispatchFn, getState: getStateFn) {
dispatch(fetchFeedVersions(feedSource))
dispatch(fetchSnapshots(feedSource))
dispatch(fetchFeedSourceDeployments(feedSource))
if (isModuleEnabled('deployment')) dispatch(fetchFeedSourceDeployments(feedSource))
}
}

Expand Down

0 comments on commit 7404578

Please sign in to comment.