diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-07-07 21:40:15 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-07-07 21:40:15 +0200 |
| commit | 11a70bc347587219b2ec7b63cf4a6ff69bb4199b (patch) | |
| tree | 855a25211d35ae1dc1533200f90381ec7702896b /client/components/Browser/Files/Files.jsx | |
| parent | 84774bfb162eda1e09495a6c55fb86393deedfe8 (diff) | |
upload files and they show up, then process
Diffstat (limited to 'client/components/Browser/Files/Files.jsx')
| -rw-r--r-- | client/components/Browser/Files/Files.jsx | 3 |
1 files changed, 1 insertions, 2 deletions
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 }) |
