From 11a70bc347587219b2ec7b63cf4a6ff69bb4199b Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
Date: Fri, 7 Jul 2017 21:40:15 +0200
Subject: upload files and they show up, then process

---
 client/components/Browser/Files/Files.jsx | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

(limited to 'client/components/Browser/Files/Files.jsx')

diff --git a/client/components/Browser/Files/Files.jsx b/client/components/Browser/Files/Files.jsx
index 74c266f..c4df74d 100644
--- a/client/components/Browser/Files/Files.jsx
+++ b/client/components/Browser/Files/Files.jsx
@@ -19,8 +19,7 @@ export default class Files extends Component {
   }
   addFiles(newFiles) {
     if (! newFiles) return
-    const files = this.state.files.concat(newFiles).sort( (a,b) => { return b.id - a.id } )
-    this.setState({ files })
+    this.props.addFiles( newFiles )
   }
   handleClick(file) {
     this.setState({ selected: file })
-- 
cgit v1.2.3-70-g09d2

