Closed cozawariat closed 4 years ago
cant get Virtual field to work :confused: Uncaught ReferenceError: Cannot access 'value' before initialization The above error occurred in the <VirtualField> component
Uncaught ReferenceError: Cannot access 'value' before initialization
The above error occurred in the <VirtualField> component
my setup is simple:
fields: { firstName: { type: Text, isRequired: true }, lastName: { type: Text, isRequired: true }, fullName: { type: Virtual, resolver: item => (`${item.firstName} ${item.lastName}`) } }
The error occurs when i am trying to edit existing record in Admin UI
Edit form should be opened
Are you using the latest @keystonejs/fields package? This sounds like what was fixed in bd4096ee86f7790c76db23090b38f880e5aa7ecc.
@keystonejs/fields
Bug report
Describe the bug
cant get Virtual field to work :confused:
Uncaught ReferenceError: Cannot access 'value' before initialization
The above error occurred in the <VirtualField> component
my setup is simple:
To Reproduce
The error occurs when i am trying to edit existing record in Admin UI
Expected behaviour
Edit form should be opened
System information