Skip to content

Unable to get single record by passing the ID in .get #133

@obaidott

Description

@obaidott

When trying to get a record in model via:

return ContributionMonth.get( this.contributionMonthId );

I get a failure after receiving the response back from the server.

I get the following error:

contribution-month.js:30 Error loading contribution month:  TypeError: Cannot use 'in' operator to search for '__get' in 57bde3b71cad166f3da559d2
    at readObservabe (http://localhost:3030/node_modules/can-connect/src/can/map/map.js:724:13)
    at Object.id (http://localhost:3030/node_modules/can-connect/src/can/map/map.js:68:16)
    at http://localhost:3030/node_modules/can-connect/src/fall-through-cache/fall-through-cache.js:256:57
    at http://localhost:3030/node_modules/can-zone/lib/tasks.js:109:15
    at Task.run (http://localhost:3030/node_modules/can-zone/lib/zone.js:39:17)
    at Zone.runTask (http://localhost:3030/node_modules/can-zone/lib/zone.js:176:14)
    at http://localhost:3030/node_modules/can-zone/lib/zone.js:270:15
    at http://localhost:3030/node_modules/can-zone/lib/tasks.js:121:21
    at tryCatchReject (http://localhost:3030/node_modules/when/es6-shim/Promise.js:1183:30)
    at runContinuation1 (http://localhost:3030/node_modules/when/es6-shim/Promise.js:1142:4)

cc: @marshallswain

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions