Skip to content

Commit

Permalink
#1506 Fix Flows sample app so properties do not open on click (#1507)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomlyn authored Jun 22, 2023
1 parent f868ce0 commit e9f6750
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 e9f6750

Please sign in to comment.