Skip to content

Commit

Permalink
#1506 Fix Flows sample app so properties do not open on click
Browse files Browse the repository at this point in the history
Signed-off-by: CTomlyn <[email protected]>
  • Loading branch information
tomlyn committed Jun 22, 2023
1 parent f868ce0 commit 1f042d2
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,9 @@ export default class FlowsCanvas extends React.Component {
}

clickActionHandler(source) {
if (this.propertiesRef.current && source.objectType === "node" &&
((source.clickType === "SINGLE_CLICK" &&
this.canvasController.getSelectedObjectIds().length === 1) ||
(source.clickType === "DOUBLE_CLICK"))) {
if (this.propertiesRef.current &&
source.objectType === "node" &&
source.clickType === "DOUBLE_CLICK") {
this.propertiesRef.current.editNodeHandler(source.id, source.pipelineId);
}
}
Expand Down

0 comments on commit 1f042d2

Please sign in to comment.