fixing cancel button issue
This commit is contained in:
@@ -467,6 +467,7 @@ const AngularWorkflow = (defaultprops) => {
|
||||
const [sourceValue, setSourceValue] = React.useState({});
|
||||
const [destinationValue, setDestinationValue] = React.useState({});
|
||||
const [conditionValue, setConditionValue] = React.useState({});
|
||||
const [tmpConditionValue, setTmpConditionValue] = React.useState({});
|
||||
const [dragging, setDragging] = React.useState(false);
|
||||
const [showWorkflowRevisions, setShowWorkflowRevisions] = React.useState(false);
|
||||
const [selectedRevision, setSelectedRevision] = useState({})
|
||||
@@ -8897,7 +8898,7 @@ const AngularWorkflow = (defaultprops) => {
|
||||
|
||||
const AppConditionHandler = (props) => {
|
||||
const { tmpdata, type } = props;
|
||||
const [data] = useState(tmpdata);
|
||||
const [data] = useState({...tmpdata});
|
||||
const [multiline, setMultiline] = useState(false);
|
||||
const [showAutocomplete, setShowAutocomplete] = React.useState(false);
|
||||
const [actionlist, setActionlist] = React.useState([]);
|
||||
@@ -9499,8 +9500,8 @@ const AngularWorkflow = (defaultprops) => {
|
||||
<MenuItem
|
||||
style={menuItemStyle}
|
||||
onClick={(e) => {
|
||||
conditionValue.value = "equals";
|
||||
setConditionValue(conditionValue);
|
||||
tmpConditionValue.value = "equals";
|
||||
setTmpConditionValue(tmpConditionValue);
|
||||
setVariableAnchorEl(null);
|
||||
}}
|
||||
key={"equals"}
|
||||
@@ -9510,8 +9511,8 @@ const AngularWorkflow = (defaultprops) => {
|
||||
<MenuItem
|
||||
style={menuItemStyle}
|
||||
onClick={(e) => {
|
||||
conditionValue.value = "does not equal";
|
||||
setConditionValue(conditionValue);
|
||||
tmpConditionValue.value = "does not equal";
|
||||
setTmpConditionValue(tmpConditionValue);
|
||||
setVariableAnchorEl(null);
|
||||
}}
|
||||
key={"does not equal"}
|
||||
@@ -9635,6 +9636,7 @@ const AngularWorkflow = (defaultprops) => {
|
||||
style={{ borderRadius: "0px" }}
|
||||
variant="contained"
|
||||
onClick={() => {
|
||||
setConditionValue(tmpConditionValue);
|
||||
setSelectedEdge({});
|
||||
|
||||
var data = {
|
||||
|
||||
Reference in New Issue
Block a user