RIFT-15945: Uploaded file now goes to correct new folder 88/1488/1
authorLaurence Maultsby <laurence.maultsby@riftio.com>
Mon, 3 Apr 2017 20:32:27 +0000 (16:32 -0400)
committerLaurence Maultsby <laurence.maultsby@riftio.com>
Mon, 3 Apr 2017 20:32:27 +0000 (16:32 -0400)
Signed-off-by: Laurence Maultsby <laurence.maultsby@riftio.com>
skyquake/plugins/composer/src/src/components/filemanager/FileManager.jsx

index 913f71a..498cd2a 100644 (file)
@@ -124,7 +124,7 @@ class FileManager extends React.Component {
 function buildList(self, data) {
     let toReturn = [];
     data.id.map(function(k,i) {
-        toReturn.push (contentFolder(self, data.data[k], k, i, self.props.filesState, self.updateFileLocationInput, self.sendDownloadFileRequst, self.deleteFile));
+        toReturn.push (contentFolder(self, data.data[k], k, k+i, self.props.filesState, self.updateFileLocationInput, self.sendDownloadFileRequst, self.deleteFile));
     });
     return toReturn.reverse();
 }