Skip to content

Commit 82eb679

Browse files
committed
check for existing workflow
1 parent 7c2e28a commit 82eb679

2 files changed

Lines changed: 6 additions & 5 deletions

File tree

OpenFlow/src/public/Controllers.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module openflow {
7272

7373

7474
chart = new chartset();
75-
chart.heading = "compare run times";
75+
chart.heading = "compare run times";
7676
chart.series = ['minrun', 'avgrun', 'maxrun'];
7777
// chart.labels = ['ok', 'warning', 'alarm'];
7878
chart.data = [[], [], []];
@@ -81,9 +81,10 @@ module openflow {
8181
chart.data[1].push(model.minrun);
8282
chart.data[2].push(model.run);
8383
chart.data[0].push(model.maxrun);
84-
var id = stats[x]._id;
84+
var id = stats[x]._id;
8585
var workflow = workflows.filter(x => x._id == id)[0];
86-
chart.labels.push(workflow.name);
86+
if (workflow == undefined) { chart.labels.push("unknown"); } else { chart.labels.push(workflow.name); }
87+
8788
}
8889
this.charts.push(chart);
8990
var instances = await this.api.Query("openrpa_instances", {}, null, null);
@@ -116,7 +117,7 @@ module openflow {
116117
this.charts.push(chart);
117118
}
118119

119-
120+
120121

121122
// chart = new chartset();
122123
// models.forEach(element => {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.80
1+
0.0.81

0 commit comments

Comments
 (0)