prisma / prisma-admin-feedback

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

ID field in edit form causes crash #36

Closed joserocha3 closed 5 years ago

joserocha3 commented 5 years ago

I have a User type that has fields updatedBy and createdBy where we store an ID that points back to another User. It does not have a relation, our requirement is simply to contain the ID.

type User {
  id: ID! @unique
  email: String! @unique  
  firstName: String!
  lastName: String!
  createdAt: DateTime!
  createdBy: ID
  updatedAt: DateTime!
  updatedBy: ID
}

When I try to edit that value the page crashes when I click on the field.

screen shot 2019-01-04 at 12 11 12 pm

On click the entire screen turns white and the following shows up in Chrome developer console.

screen shot 2019-01-04 at 12 11 51 pm

I have to refresh the page to get the admin console to display again.

Please let me know if any other details are required.

huv1k commented 5 years ago

@joserocha3 Thanks for reporting that :) Its fixed in new version.