From 21050e6d3748bee3735a3c4a95c846c91de120cd Mon Sep 17 00:00:00 2001 From: Boris Kovar Date: Fri, 16 Feb 2024 08:11:48 +0100 Subject: [PATCH] Squashed commit of the following: commit 468491f23840faf5f8b0876fe61cceedab190d25 Author: Boris Kovar Date: Thu Feb 15 12:29:35 2024 +0100 - fixed #1283 --- js/components/target/redux/dispatchActions.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/components/target/redux/dispatchActions.js b/js/components/target/redux/dispatchActions.js index 8421db5be..04798e816 100644 --- a/js/components/target/redux/dispatchActions.js +++ b/js/components/target/redux/dispatchActions.js @@ -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;