title: Cannot read property 'kind' of undefined in enger JS when adding objects to array
body: <p>im new to ember js, and below is my code for create tags array from the selectedEntities array. its successfulyy console logs the values inside the selectedEntities array, but when adding created object (tag) values to tags array its always gives &quot;Cannot read property 'tags' of undefined&quot;. How to solve this.</p>
  <pre><code>export default class Merchants extends Controller.extend(DebounceQueryParams) {
      tags= A([]); 
      selectedEntities = A([]); 
      
      
       @action
        openTestModal() {
          this.selectedEntities.forEach(function (e){
            console.log(&quot;name  &quot;, e.contactInfo.contactName);
            console.log(&quot;e.id  &quot;, e.id);
            if(e.workflowTask !==null){
              console.log(&quot;e.workflowTask.currentStatus  &quot;, e.workflowTask.currentStatus);
              const tag = {
                id: e.id,
                name: e.contactInfo.contactName,
                status: e.workflowTask.currentStatus
              };
              this.tags.pushObject(tag);
            }
      
            const tag = {
              id: e.id,
              name: e.contactInfo.contactName,
              status: e.workflowTask.currentStatus
            };
            this.tags.pushObject(tag);
          });
          this.remodal.open('user-assign');
        }
  }
  </code></pre>