Ignore nil values in the new register() API
This commit is contained in:
parent
66585d36ae
commit
10b8b373dd
@ -294,6 +294,10 @@
|
||||
--
|
||||
|
||||
function api.callback(field, value)
|
||||
-- right now, ignore calls with no value; later might want to
|
||||
-- return the current baked value
|
||||
if not value then return end
|
||||
|
||||
-- find the right target object for this field
|
||||
local target
|
||||
if field.scope == "project" then
|
||||
|
Reference in New Issue
Block a user