BoLaMN / loopback-component-admin

Loopback Admin Component
55 stars 25 forks source link

Model instances do not load #18

Closed gregdingle closed 8 years ago

gregdingle commented 8 years ago

Repro steps:

  1. Install admin.
  2. Login to http://0.0.0.0:3000/admin .
  3. See that instances do not load.
  4. See 500 error because of "undefined" in url. This should be a valid column name or nothing.

http://0.0.0.0:8081/api/Members?filter=%7B%22include%22:%5B%22accessTokens%22%5D,%22skip%22:0,%22limit%22:10,%22order%22:%22undefined+DESC%22%7D

Changing the default query scope does nothing.

gregdingle commented 8 years ago

I fixed the issue by recompiling the coffee script with grunt . It looks like the same issue was already fixed in dev here: https://github.com/BoLaMN/loopback-component-admin/commit/9e70229346492282e4e1060e25458320557362c4#diff-3636a9d42c5f52dd1a4afee797bf2219R1963 . But NPM has an older version: https://www.npmjs.com/package/loopback-component-admin .