Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Fix a broken reference in models/node.js #271

Description

@abrinckm

Hi,

I had a problem calling node.save(); which resulted in this error:

TypeError: Cannot read property 'get' of undefined
    at node.js:140
    at Array.filter (<anonymous>)
    at Class.save (node.js:139)
    at Class.superWrapper [as save] (ember.debug.js:45374)

I found the culprit in addons/models/node.js
Within the line

contributors.members.list.filter(m => !m.record.get('isNew') ...

Where record was not found in m. However, I did find that m contained _record.

So my solution was to just change all references of m.record to m._record and this fixed the issue for me. Not entirely sure if this is a correct solution though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions