Skip to content

Commit

Permalink
Fix array proxy deprecation (#326)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfries authored Sep 11, 2024
1 parent c6fbff7 commit 5d7a5e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/dummy/app/controllers/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ export default class FeaturesController extends Controller {
@action
public async handleDeleteRecordClick(): Promise<void> {
const users = await this.store.findAll('user');
const user = users.get('firstObject');
// @ts-expect-error array proxy is indeed indexable
const user = users[0];

await user?.destroyRecord();

Expand Down

0 comments on commit 5d7a5e7

Please sign in to comment.