Skip to content

Commit

Permalink
- fixed #1283
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskovar-m2ms committed Feb 15, 2024
1 parent 50ef828 commit 468491f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/components/target/redux/dispatchActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ export const getTargetProjectCombinations = (targets, projects) => {
result.push({ updatedTarget: { ...target, project: { target_access_string: 'Legacy' } } });
}
});
} else if (targetItems.length > 0) {
targetItems.forEach(([targetId, target]) => {
if (target.isLegacy) {
result.push({ updatedTarget: { ...target, project: { target_access_string: 'Legacy' } } });
}
});
}

return result;
Expand Down

0 comments on commit 468491f

Please sign in to comment.