Skip to content

Commit

Permalink
#1693 Test harness crashes when opening the API tab after selecting s…
Browse files Browse the repository at this point in the history
…ample flow (#1694)
  • Loading branch information
tomlyn authored Feb 14, 2024
1 parent 4d2fc23 commit d1ce826
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions canvas_modules/harness/src/client/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,9 @@ class App extends React.Component {
this.log("API Operation Selected");
}

getPipelineFlow(canvController) {
let canvasController = canvController ? canvController : this.canvasController;
getPipelineFlow() {
// If we're displaying a sample app, get its canvas controller.
canvasController = this.canvasRef ? this.canvasRef.current.canvasController : this.canvasController;
const canvasController = this.canvasRef?.current ? this.canvasRef.current.canvasController : this.canvasController;

try {
return canvasController.getPipelineFlow();
Expand Down

0 comments on commit d1ce826

Please sign in to comment.