jjzjj

namedContext

全部标签

javascript - Meteor 使用 namedContext 将 InvalidKeys 添加到返回错误的 AutoForm 表单

我有以下SimpleSchema,我试图在其中添加自定义验证以验证是否输入重复的客户名称,但每当我尝试保存新客户时,我都会收到错误消息:Exceptionindeliveringresultofinvoking'adminCheckNewCustomerName':TypeError:Cannotreadproperty'namedContext'ofnull有人可以告诉我我在这里做错了什么/遗漏了什么以根据重复记录验证客户名称吗?谢谢schema.js:AdminSection.schemas.customer=newSimpleSchema({CustomerName:{type: