Skip to content

Commit

Permalink
Merge pull request #2490 from shuhaib-aot/Bugfix/fixed-wizard-form-is…
Browse files Browse the repository at this point in the history
…sue-taskvariable

Fixed: set initial form as null and fixed wizard form next and previous button clickable in taskvariable
  • Loading branch information
arun-s-aot authored Jan 8, 2025
2 parents b93a2fb + 26a9d18 commit 98feed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions forms-flow-web/src/components/Modals/TaskVariableModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const FormComponent = React.memo(
const { t } = useTranslation();

/* ------------- manipulate the hidden variable to show in form ------------- */
const [updatedForm, setUpdatedForm] = useState(form);
const [updatedForm, setUpdatedForm] = useState(null);
const [manipulatedKeys, setManipulatedKeys] = useState(new Set());
useEffect(()=>{
const data = _.cloneDeep(form);
Expand Down Expand Up @@ -238,7 +238,7 @@ const FormComponent = React.memo(
</div>

<div className="field-details-container" ref={detailsRef}>
{showElement ? (
{showElement && selectedComponent.key ? (
<div className="details-section">
<div className="d-flex flex-column">
<span>{t("Type")}:</span>
Expand Down

0 comments on commit 98feed6

Please sign in to comment.