GUAC-1292: Verify existence of filesystem before refreshing.
This commit is contained in:
1 parent
f43a0636f3
commit
31fc2d8787
1 file changed
+5
-1
@@ -250,7 +250,11 @@ angular.module('client').directive('guacFileBrowser', [function guacFileBrowser(
|
|||||||
|
|
||||||
// Refresh file browser when any upload completes
|
// Refresh file browser when any upload completes
|
||||||
$scope.$on('guacUploadComplete', function uploadComplete(event, filename) {
|
$scope.$on('guacUploadComplete', function uploadComplete(event, filename) {
|
||||||
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
|
|
||||||
|
// Refresh filesystem, if it exists
|
||||||
|
if ($scope.filesystem)
|
||||||
|
ManagedFilesystem.refresh($scope.filesystem, $scope.filesystem.currentDirectory);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
}]
|
}]
|
||||||
|
|||||||
Reference in new issue
Block a user