mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-04 02:31:33 +00:00
Apply review suggestion, simplify code slightly
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user