Adding a new component using 'Field validate' results in error
Severity: Critical
Environment: Local / Prod
Steps to reproduce:
- Login & access the forms page
- Add a new component
- Select any component type
- Fill in the necessary information
- Select any option under 'Field validate'
- Click 'Update Component' and check the consoles
Expected results: The new component is properly saved
Actual results: The action fails; the web console shows an error (400) & the app console displays the following:
"server_1 | error: Variable "element" got invalid value { value: "required", label: "Required" } at "element.validate"; Field "id" of required type "ID!" was not provided. message=Variable "
element" got invalid value { value: "required", label: "Required" } at "element.validate"; Field "id" of required type "ID!" was not provided., locations=[line=1, column=11], path=undefined, code=INTERNAL_SERVER_ERROR, stacktrace=[GraphQLError: Variable "$element" got invalid value { value: "required", label: "Required" } at "element.validate"; Field "id" of required type "ID!" was not provided., at /home/node/app/node_modules/graphql/execution/values.js:116:15, at coerceInputValueImpl (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:99:11), at coerceInputValueImpl (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:54:14), at coerceInputValueImpl (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:78:13), at coerceInputValueImpl (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:105:34), at coerceInputValueImpl (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:54:14), at coerceInputValue (/home/node/app/node_modules/graphql/utilities/coerceInputValue.js:37:10), at _loop (/home/node/app/node_modules/graphql/execution/values.js:109:69), at coerceVariableValues (/home/node/app/node_modules/graphql/execution/values.js:121:16), at getVariableValues (/home/node/app/node_modules/graphql/execution/values.js:50:19), at buildExecutionContext (/home/node/app/node_modules/graphql/execution/execute.js:203:61), at executeImpl (/home/node/app/node_modules/graphql/execution/execute.js:101:20), at Object.execute (/home/node/app/node_modules/graphql/execution/execute.js:60:35), at /home/node/app/node_modules/apollo-server-core/dist/requestPipeline.js:249:48, at Generator.next (), at /home/node/app/node_modules/apollo-server-core/dist/requestPipeline.js:8:71]"
Note:
- please check the screenshot below