Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

If the server returned an empty array for a get request (valid scenario), angular-data throws an exception #225

Closed
Assignees
jmdobry
Labels
@Varada

Description

@Varada

In the inject function - there is code to the effect of

            if (options.linkInverse) {                if (DS.utils.isArray(injected) && injected.length) {                        DS.linkInverse(definition.name, injected[0][definition.idAttribute]);                 }                 else {                    DS.linkInverse(definition.name, injected[definition.idAttribute]);                }            }

In this scenario, the get returns an array - but its length is 0. Now the code attempts to look it up in the else clause as an object and throws exception

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp