Fix parsing non atom tuples
This commit is contained in:
parent
a84cb569a1
commit
265ecd66e1
1 changed files with 3 additions and 3 deletions
|
@ -110,11 +110,11 @@ export const parseTuples = (tuples, key) => {
|
|||
accum[item.tuple[0]] = {}
|
||||
} else if (Array.isArray(item.tuple[1]) &&
|
||||
(typeof item.tuple[1][0] === 'object' && !Array.isArray(item.tuple[1][0])) && item.tuple[1][0]['tuple']) {
|
||||
accum[item.tuple[0]] = parseTuples(item.tuple[1])
|
||||
} else if (Array.isArray(item.tuple[1])) {
|
||||
nonAtomsTuples.includes(item.tuple[0])
|
||||
? accum[item.tuple[0]] = parseNonAtomTuples(item.tuple[1])
|
||||
: accum[item.tuple[0]] = parseTuples(item.tuple[1])
|
||||
} else if (Array.isArray(item.tuple[1])) {
|
||||
accum[item.tuple[0]] = item.tuple[1]
|
||||
: accum[item.tuple[0]] = item.tuple[1]
|
||||
} else if (item.tuple[0] === ':ip') {
|
||||
accum[item.tuple[0]] = item.tuple[1].tuple.join('.')
|
||||
} else if (item.tuple[1] && typeof item.tuple[1] === 'object' && 'tuple' in item.tuple[1]) {
|
||||
|
|
Loading…
Reference in a new issue