Skip to content

Commit

Permalink
[front: wip] array of refs !?!???
Browse files Browse the repository at this point in the history
  • Loading branch information
t8g committed Sep 27, 2017
1 parent 9f915a1 commit 3670fdf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion client/src/app/isari-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,16 @@ export class IsariDataService {
if (isArray(o) && o.length === 0) return "?";
if (isArray(o)) {
return o.some(isPlainObject)
? o.map(oo => format(oo, refs, level)).join("\n")
? o.map(oo => {
// if (oo.ref && oo.value) oo = this.getForeignLabel(oo.ref, oo.value).do(x => console.log(x)).map(x => x[0].value);
return format(
oo,
// oo.ref && oo.value
// ? this.getForeignLabel(oo.ref, oo.value).do(x => { console.log('?', x) }).map(x => x[0].value)
// : oo,
refs,
level)
}).join("\n")
: o.join(', ');
}

Expand Down

0 comments on commit 3670fdf

Please sign in to comment.