mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-08 22:56:06 +00:00
Only try to dereference attrs when enough information is present
This commit is contained in:
@@ -8,5 +8,4 @@ angular.module("admin.indexUtils").factory 'Dereferencer', ->
|
||||
dereferenceAttr: (array, attr, data)->
|
||||
if array
|
||||
for object in array
|
||||
console.log attr, object[attr].id if data[object[attr].id] == undefined
|
||||
object[attr] = data[object[attr].id]
|
||||
object[attr] = data[object[attr].id] unless object[attr] == null
|
||||
|
||||
Reference in New Issue
Block a user