Skip to content

Commit

Permalink
pathed folder issue with load more
Browse files Browse the repository at this point in the history
  • Loading branch information
i-rocky committed Oct 26, 2018
1 parent fa43699 commit d673e89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "themexpert/react-filemanager-server",
"license": "MIT",
"version": "1.4.0",
"version": "1.4.1",
"description": "File Manager Server side script",
"type": "library",
"keywords": [
Expand Down
4 changes: 3 additions & 1 deletion src/Plugins/General.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function fetch_list()
$results = [];
}

$results = array_merge($dirs, $results);
if ($currentPage == 1) {
$results = array_merge($dirs, $results);
}
$this->prepareList($results);
$result = ['total' => count($list), 'items' => $results];
return Response::JSON($result);
Expand Down

0 comments on commit d673e89

Please sign in to comment.