@lowcodeunit/applications-flow-common 1.36.25-merge → 1.36.28-merge

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -971,14 +971,12 @@ class EaCService {
971
971
  Applications: {},
972
972
  Projects: {},
973
973
  };
974
- const existingProj = {
975
- ...this.State.EaC.Projects[req.ProjectLookup],
976
- };
977
- if (existingProj.ApplicationLookups?.indexOf(req.ApplicationLookup) < 0) {
978
- if (!existingProj.ApplicationLookups) {
979
- existingProj.ApplicationLookups = [];
980
- }
981
- existingProj.ApplicationLookups.push(req.ApplicationLookup);
974
+ if (req.ProjectLookup) {
975
+ const existingProj = {
976
+ [req.ProjectLookup]: {
977
+ ApplicationLookups: [req.ApplicationLookup],
978
+ },
979
+ };
982
980
  saveEaC.Projects[req.ProjectLookup] = existingProj;
983
981
  }
984
982
  if (req.Application) {