We have a checklist of records and we created a smart action to mark them complete in the smart view. Testing it in the smart view editor gives us this error “TypeError: a is not a function” but still triggers successfully and updates the record.
But when we do this normally through the customer summary view it crashes the whole admin panel for us.
HBS Code
{{#each @records as |record|}}
{{#if (is-equal record.forest-itemType ‘list’)}}
{{#if (is-equal record.forest-completed false)}}
<BetaLabel
@label={{record.forest-closingItem.forest-title}}
@description={{record.forest-dueDate}}
/>
<BetaCheckbox
@value={{record.forest-completed}}
@onChange={{action this.triggerSmartAction @collection ‘Complete Closing Item’ record}}
@disabled={{false}}
/>
Component Imports
import Component from ‘@glimmer/component’;
import { inject as service } from ‘@ember/service’;
import { observer } from ‘@ember/object’;
import moment from ‘moment’;
import SmartViewMixin from ‘client/mixins/smart-view-mixin’;
export default Ember.Component.extend(SmartViewMixin, {
This is a template you can use to report issues. You can also drag images, videos and include Preformatted text
Expected behavior
Please describe here the behavior you are expecting.
Actual behavior
What is the current behavior?
Failure Logs
Please include any relevant log snippets, if necessary.
Context
Please provide any relevant information about your setup.
- Package Version:
- Express Version:
- Sequelize Version:
- Database Dialect:
- Database Version:
- Project Name: