prisma / prisma-admin-feedback

Feedback for Prisma Admin (currently in invite-only preview)
6 stars 1 forks source link

Unable to open some tables in data browser #102

Closed andryxaSc closed 5 years ago

andryxaSc commented 5 years ago

When i try open some tables in data browser i received error "Cannot read property 'name' of undefined"

Screen Shot 2019-03-22 at 5 03 44 PM

with next stack trace:

TypeError: Cannot read property 'name' of undefined at e.getField (Engine.js:461) at Engine.js:490 at mapValues.js:38 at _createBaseFor.js:17 at t.a (_baseForOwn.js:13) at Object.t.a (mapValues.js:37) at i (Engine.js:486) at e.getField (Engine.js:498) at Engine.js:382 at Array.reduce (<anonymous>) at e.getFields (Engine.js:376) at e.getSelectionFields (Engine.js:166) at e.setQuery (Engine.js:186) at sagas.js:248 at sagas.js:35 at Object.next (sagas.js:16) at M (proc.js:311) at w (proc.js:388) at proc.js:699 at N (proc.js:435) at M (proc.js:315) at e (proc.js:270) at L (proc.js:554) at N (proc.js:435) at M (proc.js:315) at w (proc.js:388) at proc.js:593 at N (proc.js:435) at M (proc.js:315) at w (proc.js:388) at i (proc.js:466) at Object.put (channel.js:73) at channel.js:161 at Array.<anonymous> (channel.js:182) at Object.emit (channel.js:26) at middleware.js:67 at dispatch (applyMiddleware.js:35) at utils.js:250 at proc.js:489 at i (scheduler.js:19) at s (scheduler.js:60) at t.a (scheduler.js:33) at Array.<anonymous> (channel.js:185) at Object.emit (channel.js:26) at middleware.js:67 at i.(anonymous function) (https://app.prisma.io/static/js/main.227e6333.js:1:2594596) at onClick (Sidebar.js:74) at Object.<anonymous> (react-dom.production.min.js:14) at p (react-dom.production.min.js:15) at react-dom.production.min.js:15

At the same time, another tables works properly.

This problem i have 10+ days.

Additional info:

huv1k commented 5 years ago

Hey, could you please share model for that data table?

andryxaSc commented 5 years ago

With this model i have problem with User and Project tables

huv1k commented 5 years ago

This should be fixed, but there is still a problem with missing id field #73