Skip to content
This repository has been archived by the owner on Jun 15, 2023. It is now read-only.

Commit

Permalink
fix: clear file list on deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
boypt committed Jul 14, 2021
1 parent 9808bd0 commit bcaf8b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static/files/js/downloads-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ app.controller("DownloadsController", function ($scope, $rootScope, apiget) {
apiget.files().then(function (xhr) {
if (xhr.data.Children) {
$scope.$DownloadedFiles = xhr.data.Children;
} else {
$scope.$DownloadedFiles = [];
}
}).finally(function () {
$scope.$isLoadingFiles = false;
Expand Down

0 comments on commit bcaf8b1

Please sign in to comment.