Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjeevz3009 committed Jul 26, 2024
1 parent 931fb46 commit 334d529
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/eq_schema/builders/routing2/newRoutingDestination/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ const containsMutuallyExclusive = (obj) => {
return true;
}

console.log(Object.values(obj).some(containsMutuallyExclusive));

return Object.values(obj).some(containsMutuallyExclusive);
};

Expand Down Expand Up @@ -149,9 +147,6 @@ const buildAnswerObject = (
[routingConditionConversion("AllOf")]: optionValues,
};

console.log(optionValues);
console.log("Hello", SelectedOptions);

return SelectedOptions;
} else if (condition === "OneOf") {
const swapOptionValues = ([optionValues[0], optionValues[1]] = [
Expand All @@ -162,24 +157,9 @@ const buildAnswerObject = (
[routingConditionConversion(condition)]: swapOptionValues,
};

// let a = containsMutuallyExclusive(ctx.questionnaireJson);
// console.log(a);

return SelectedOptions;
}

// if (
// condition === "OneOf" &&
// containsMutuallyExclusive(ctx.questionnaireJson) === true
// ) {
// const SelectedOptions = {
// [routingConditionConversion("AllOf")]: optionValues,
// };
// console.log("Hello", SelectedOptions);

// return SelectedOptions;
// }

const SelectedOptions = {
[routingConditionConversion(condition)]: optionValues,
};
Expand Down

0 comments on commit 334d529

Please sign in to comment.