Smart view, smart action crashing panel

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:

Hi again @Zero,

Let’s list the problems:

  • Pb.1: In a smart view editor, you can trigger smart action X with success, but a warning appear: a is not a function.
  • Pb.2: Triggering smart action X from the regular smart action menu crashes the admin panel.

In order to have more resolution ideas, I have few questions:

  • Can you provide logs for the two problems?
    • Logs from the browser side (console + network calls)
    • Logs from the server-side
  • Can you please provide the smart action definition (type, etc.)
  • Is it the only failing smart action?
  • Do you have others smart action which is working?
  • Is this smart action a new one?
  • What is the name of the smart action?
  • What is the name of your project?

The same smart action is working from a smart view but failing in regular menu: quite strange.
Best