From 8da623c60389bffc76dd3c1b6d8055dd19f97607 Mon Sep 17 00:00:00 2001
From: Jason <jason.daurus@gmail.com>
Date: Sat, 25 Jun 2016 00:53:56 +0800
Subject: [web] fix selectFlows

---
 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 689cea5c..1fa7037f 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.data[state.flows.views.main.selected[0]],
+        flow: state.flows.list.byId[state.flows.views.main.selected[0]],
     })
 )(FlowMenu)
-- 
cgit v1.2.3

