From 5b480258322682fdc4fa987770df9e719315f167 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 2 Jun 2020 16:39:00 +0200 Subject: editing graph meta works --- frontend/views/index/containers/graph.index.js | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'frontend/views/index/containers/graph.index.js') diff --git a/frontend/views/index/containers/graph.index.js b/frontend/views/index/containers/graph.index.js index 7ac31da..c02ad79 100644 --- a/frontend/views/index/containers/graph.index.js +++ b/frontend/views/index/containers/graph.index.js @@ -13,17 +13,30 @@ class GraphIndex extends Component { } render() { const { index } = this.props - if (index.loading) { + console.log(this.props) + if (!index.order) { return (
) } + // console.log(state) return (
- welcome, swimmer - + new project +
+ welcome, swimmer + + new project +
+ {index.order.map(id => { + const graph = index.lookup[id] + return ( +
+ {graph.title} + {'edit project'} +
+ ) + })}
) } -- cgit v1.2.3-70-g09d2