From 7bc479bb3a69688d8a557739f6b60434dbe34818 Mon Sep 17 00:00:00 2001
From: Jason <jason.daurus@gmail.com>
Date: Fri, 24 Jun 2016 00:03:32 +0800
Subject: [web] fix flows data flow

---
 web/src/js/components/Header/FlowMenu.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/src/js/components/Header/FlowMenu.jsx')

diff --git a/web/src/js/components/Header/FlowMenu.jsx b/web/src/js/components/Header/FlowMenu.jsx
index 45a84541..689cea5c 100644
--- a/web/src/js/components/Header/FlowMenu.jsx
+++ b/web/src/js/components/Header/FlowMenu.jsx
@@ -29,6 +29,6 @@ function FlowMenu({ flow }) {
 
 export default connect(
     state => ({
-        flow: state.flows.list.byId[state.flows.selected[0]]
+        flow: state.flows.list.data[state.flows.views.main.selected[0]],
     })
 )(FlowMenu)
-- 
cgit v1.2.3

