Skip to content

get helper not working on promise proxy arrays #20510

Open
@amk221

Description

@amk221

🐞 Describe the Bug

get helper not working with promise proxy arrays

🔬 Minimal Reproduction

https://ember-twiddle.com/75a0587be8b073980c040acb94542c68?openFiles=templates.application%5C.hbs%2C

😕 Actual Behavior

Does not return item from array

🤔 Expected Behavior

Expecting item from array to be returned

🌍 Environment

  • Ember: 4.12
  • Node.js/npm: 18.16 / 9.5.1
  • OS: mac
  • Browser: chrome

➕ Additional Context

I was trying to action this lint warning:

Array prototype extension property firstObject usage is disallowed. Please use Ember's get helper instead. e.g. {{get @list '0'}} (fixable)ember-template-lintno-array-prototype-extensions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions