GUACAMOLE-585: getFieldOption should return EMPTY when value is not present.

This commit is contained in:
Nick Couchman
2018-06-30 16:57:51 -04:00
parent d1e928bea7
commit 86856fa895

View File

@@ -119,7 +119,7 @@ angular.module('form').directive('guacFormField', [function formField() {
$scope.getFieldOption = function getFieldOption(value) {
// If no field, or no value, then no corresponding translation string
if (!$scope.field || !$scope.field.name || !value)
if (!$scope.field || !$scope.field.name)
return '';
return translationStringService.canonicalize($scope.namespace || 'MISSING_NAMESPACE')