Skip to content

Commit b602fd4

Browse files
committed
fix when phase doesn't have an associated topic
1 parent e096bb6 commit b602fd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/projects/actions/phasesTopics.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function loadFeedsForPhases(projectId, phases, dispatch) {
2828
phases.map((phase) => getPhaseTopicWithoutMembers(dispatch, projectId, phase.id, tag))
2929
).then((responses) => {
3030
return _.map(responses, (resp) => ({
31-
topics: [].concat(_.get(resp, 'value')),
31+
topics: _.get(resp, 'value') ? [_.get(resp, 'value')] : [],
3232
phaseId: _.get(resp, 'action.meta.phaseId')
3333
}))
3434
})

0 commit comments

Comments
 (0)