Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Weird object render #38

Closed
kdauzickas opened this issue Oct 9, 2012 · 2 comments
Closed

Weird object render #38

kdauzickas opened this issue Oct 9, 2012 · 2 comments

Comments

@kdauzickas
Copy link

Another minor glitch in js. Not sure what causes this but I think it's 2 consecutive fields with arrays.
Data:
{ _id: ObjectId("5074285671d82f2f61000000"), foo: [ { data: "data" } ], bar: [] }

Expected render:

{
    _id: ObjectId("5074285671d82f2f61000000"),
    foo: [
        {
            data: "data"
        }
    ],
    bar: []
}

Actual render:

{
        _id: ObjectId("5074285671d82f2f61000000"),
        foo: [
        {
            data: "data"
        }
    ],
        bar: []
}
@bobthecow
Copy link
Owner

yeah, that isn't right. i'll try to track it down.

@bobthecow
Copy link
Owner

Thanks for reporting this. It was actually a problem with rendering properties containing only an empty array (bar: []). It's been fixed in develop and will go out with the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants