reformatting some code
This commit is contained in:
parent
871949ef5e
commit
5c8c6b5ce3
|
@ -82,7 +82,15 @@ const addToParent = (obj) => {
|
||||||
if (isIndex(obj))
|
if (isIndex(obj))
|
||||||
// Q: why are indexes not children ?
|
// Q: why are indexes not children ?
|
||||||
// A: because they cannot have children of their own.
|
// A: because they cannot have children of their own.
|
||||||
{ parent.indexes.push(obj); } else if (isaggregateGroup(obj)) { parent.aggregateGroups.push(obj); } else { parent.children.push(obj); }
|
{
|
||||||
|
parent.indexes.push(obj);
|
||||||
|
}
|
||||||
|
else if (isaggregateGroup(obj))
|
||||||
|
{
|
||||||
|
parent.aggregateGroups.push(obj);
|
||||||
|
} else {
|
||||||
|
parent.children.push(obj);
|
||||||
|
}
|
||||||
|
|
||||||
if (isRecord(obj)) {
|
if (isRecord(obj)) {
|
||||||
const defaultIndex = find(
|
const defaultIndex = find(
|
||||||
|
|
Loading…
Reference in New Issue