Skip to content

Commit

Permalink
fixed Task Variables are not showing issue (#1925)
Browse files Browse the repository at this point in the history
fahad-aot authored Mar 3, 2024
1 parent 6686f2d commit 961a4ba
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import { Row, Col } from "react-bootstrap";
import Modal from "react-bootstrap/Modal";
import ModalTitle from "react-bootstrap/ModalTitle";
@@ -40,6 +40,13 @@ function TaskAttributeComponent({
});
};

useEffect(() => {
// If inputValues is empty , initialize it with a single object
if (Object.keys(inputValues).length === 0) {
setInputValues([{ name: "", label: "" }]);
}
}, [inputValues, setInputValues]);

const UndefinedVaribaleCheckboxChange = (e) => {
setShowUndefinedVariable(e.target.checked);
};

0 comments on commit 961a4ba

Please sign in to comment.