From 749d710665d148e0e7737a0c8051a6973714155d Mon Sep 17 00:00:00 2001
From: Jason <jason.daurus@gmail.com>
Date: Thu, 23 Jun 2016 01:30:28 +0800
Subject: [web] fix data connection

---
 web/src/js/components/MainView.jsx | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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

diff --git a/web/src/js/components/MainView.jsx b/web/src/js/components/MainView.jsx
index a271a7f0..1f1cb90c 100644
--- a/web/src/js/components/MainView.jsx
+++ b/web/src/js/components/MainView.jsx
@@ -154,7 +154,7 @@ class MainView extends Component {
     }
 
     render() {
-        const { flows, selectedFlow, highlight, sort } = this.props
+        const { flows, selectedFlow, highlight } = this.props
         return (
             <div className="main-view">
                 <FlowTable
@@ -182,11 +182,10 @@ class MainView extends Component {
 
 export default connect(
     state => ({
-        flows: state.flows.view,
+        flows: state.flows.list.data,
         filter: state.flows.filter,
-        sort: state.flows.sort,
         highlight: state.flows.highlight,
-        selectedFlow: state.flows.all.byId[state.flows.selected[0]]
+        selectedFlow: state.flows.list.byId[state.flows.selected[0]]
     }),
     {
         selectFlow,
-- 
cgit v1.2.3

