Skip to content

Commit

Permalink
Merge pull request #2550 from shuhaib-aot/Bugfix/FWF-4311-show-compon…
Browse files Browse the repository at this point in the history
…ent-in-taskvariable

FWF-4311 [ Bugfix ] :Fixed => showing conditionaly rendered component in taskvariable modal
  • Loading branch information
arun-s-aot authored Jan 29, 2025
2 parents 33c616f + 70564b5 commit fd9958b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions forms-flow-web/src/components/Modals/TaskVariableModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,13 @@ const FormComponent = React.memo(
const data = _.cloneDeep(form);
const manipulatedKeys = [];
Utils.eachComponent(data.components,(component)=>{
// remove display (show/hide) conditions for showing the component in taskvariable modal
/* --------------------------- ------------------ --------------------------- */
component.conditional = {};
component.customConditional = "";
component.logic = [];
component.hidden = false;
/* ---------------------------------- ---- ---------------------------------- */
//Keys ignored for the default task variable that don't need to be displayed in the form.
if(component.type == "hidden" && !ignoreKeywords.has(component.key)){
component.type = "textfield";
Expand Down

0 comments on commit fd9958b

Please sign in to comment.