diff --git a/app/assets/javascripts/admin/index_utils/directives/obj_for_update.js.coffee b/app/assets/javascripts/admin/index_utils/directives/obj_for_update.js.coffee index f170d92437..3ed4e6c98f 100644 --- a/app/assets/javascripts/admin/index_utils/directives/obj_for_update.js.coffee +++ b/app/assets/javascripts/admin/index_utils/directives/obj_for_update.js.coffee @@ -12,8 +12,7 @@ angular.module("admin.indexUtils").directive "objForUpdate", (switchClass, pendi scope.clear() else scope.pending() - value = if value? then value else "" - addPendingChange(scope.attr, value) + addPendingChange(scope.attr, value ? "") scope.reset = (value) -> scope.savedValue = value