GUACAMOLE-930: Remove unnecessary $scope.$apply().

$q and $http promises, such as the promise returned by
languageService.getLanguages(), will already implicitly $apply() when
needed.
This commit is contained in:
Michael Jumper
2020-01-19 19:41:55 -08:00
parent 51de21b745
commit b8008baf6c

View File

@@ -40,9 +40,7 @@ angular.module('form').controller('languageFieldController', ['$scope', '$inject
// Retrieve defined languages
languageService.getLanguages().then(function languagesRetrieved(languages) {
$scope.$apply(function updateLanguageOptions() {
$scope.languages = languages;
});
$scope.languages = languages;
}, requestService.DIE);
// Interpret undefined/null as empty string