Skip to content

Commit

Permalink
Merge pull request #80 from shikshalokam/SB-29009
Browse files Browse the repository at this point in the history
Sb 29009 quick fix
  • Loading branch information
aks30 authored Mar 10, 2022
2 parents aeb1a03 + effc077 commit 8b19767
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions module/userProjects/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ module.exports = class UserProjectsHelper {
});

keepFieldsFromTask.forEach((field) => {
task.field = userProject[0].tasks[taskIndex][field] ? userProject[0].tasks[taskIndex][field] : null;
if ( userProject[0].tasks[taskIndex][field] ){
task[field] = userProject[0].tasks[taskIndex][field];
}
});

userProject[0].tasks[taskIndex] = task;
Expand Down Expand Up @@ -1401,7 +1403,8 @@ module.exports = class UserProjectsHelper {

createProject =
_.merge(createProject, programAndSolutionInformation.data);
}else {
}
if (data.programId && data.programId !== "") {
let queryData = {};
queryData["_id"] = data.programId;
let programDetails = await programsQueries.programsDocument(queryData,
Expand Down

0 comments on commit 8b19767

Please sign in to comment.