mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Refactoring with feedback on pr #1073
This commit is contained in:
@@ -7,7 +7,7 @@ Darkswarm.factory 'Dereferencer', ->
|
||||
unreferenced = []
|
||||
if source && target
|
||||
for object, i in source
|
||||
key = if object then object.id else undefined
|
||||
key = object?.id
|
||||
if data.hasOwnProperty(key)
|
||||
target[i] = data[key]
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user