fix regression bug from previous commit: pending flows were not being handled correctly
diff --git a/web/ons-demo/js/flows.js b/web/ons-demo/js/flows.js
index f4506e2..f5ce43c 100644
--- a/web/ons-demo/js/flows.js
+++ b/web/ons-demo/js/flows.js
@@ -215,6 +215,11 @@
if (flow) {
var liveFlow = flowMap[makeFlowKey(flow)];
if (liveFlow) {
+ flow.flowId = liveFlow.flowId;
+ if (flow.createPending) {
+ startIPerfForFlow(flow);
+ flow.createPending = false;
+ }
flow.dataPath = liveFlow.dataPath;
newSelectedFlows.push(flow);
} else if (flow.createPending) {