From 82cf40b516b5ab11c34b3642a01603ec1b590c9f Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Thu, 29 Jun 2017 13:05:21 +0200
Subject: store open folders in localstorage

---
 client/components/Folders/FolderForm.jsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'client/components/Folders/FolderForm.jsx')

diff --git a/client/components/Folders/FolderForm.jsx b/client/components/Folders/FolderForm.jsx
index b89e2a0..1ed263e 100644
--- a/client/components/Folders/FolderForm.jsx
+++ b/client/components/Folders/FolderForm.jsx
@@ -25,6 +25,7 @@ export default class FolderForm extends Component {
     event.preventDefault()
     let rec = Object.assign({}, this.state)
     delete rec.error
+    this.props.onClose()
     client.folder.create( rec ).then( (data) => {
       this.props.addFolder( data )
     })
-- 
cgit v1.2.3-70-g09d2

