Skip to content

Commit

Permalink
fix(fix): fix the fix on array handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Oct 28, 2018
1 parent fe8ae3d commit a2e35cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Thing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class Thing {
let id = Reflect.getMetadata('property:id', this, key)
let [context, term] = id.split(':')
if (Array.isArray(value)) {
jsonld[term] = value.map(item => (item instanceof Thing) ? item.toJSONLD(false) : value)
jsonld[term] = value.map(item => (item instanceof Thing) ? item.toJSONLD(false) : item)
} else if (value instanceof Thing) {
jsonld[term] = value.toJSONLD(false)
} else {
Expand Down

0 comments on commit a2e35cc

Please sign in to comment.