Meteor 更新aldeed autoform时未调用模板帮助程序

Meteor 更新aldeed autoform时未调用模板帮助程序,meteor,meteor-autoform,meteoric,Meteor,Meteor Autoform,Meteoric,我正在使用meteoric autoform并对我的值进行更新,表单没有使用现有值填充,更新也没有发生。 我还可以看到,用于获取id的模板助手方法根本没有被调用 assessmentedit.js Template.assesmentEdit.helpers({ assesment: function () { alert("entered helper"); console.log(template.data.id); var template = Temp

我正在使用meteoric autoform并对我的值进行更新,表单没有使用现有值填充,更新也没有发生。 我还可以看到,用于获取id的模板助手方法根本没有被调用

assessmentedit.js

Template.assesmentEdit.helpers({
  assesment: function () {
      alert("entered helper");
      console.log(template.data.id);
    var template = Template.instance();
    return Assesments.findOne({_id: template.data.id});
  }
});
assessmentedit.html

<template name="assesmentEdit">
  {{#ionModal customTemplate=true}}
    {{# autoForm collection="Assesments" id="assesments-edit-form" type="update"}}
      <div class="bar bar-header bar-stable">
        <button data-dismiss="modal" type="button" class="button button-clear">Cancel</button>
        <h2 class="title">Edit Assesment</h2>
        <button type="submit" class="button button-positive button-clear">Save</button>
      </div>
      <div class="content has-header overflow-scroll">
        {{> afQuickField name="name" }}
        {{> afQuickField name="email"}}
        {{> afQuickField name="category"}}
        {{> afQuickField name="location"}}
      </div>
    {{/autoForm}}
  {{/ionModal}}
</template>

{{{#ionModal customTemplate=true}
{{{#autoForm collection=“assessments”id=“assessments edit form”type=“update”}
取消
编辑评估
拯救
{{>afQuickField name=“name”}
{{>afQuickField name=“email”}
{{>afQuickField name=“category”}
{{>afQuickField name=“location”}
{{/autoForm}
{{/ionModal}}
如您所见,
update
表单需要一个
doc
属性

{{# autoForm doc=assesment collection="Assesments" id="assesments-edit-form" type="update"}}