From abb771ecf77f15584d69c47af0d1a9864a89e419 Mon Sep 17 00:00:00 2001 From: Stanislav Romanov Date: Sun, 5 Jun 2022 08:46:39 +0300 Subject: [PATCH] Fix access to the indexes --- app/routes/admin/indexes/item.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes/admin/indexes/item.js b/app/routes/admin/indexes/item.js index 1fc3228..3db5a40 100644 --- a/app/routes/admin/indexes/item.js +++ b/app/routes/admin/indexes/item.js @@ -2,6 +2,6 @@ import Route from '@ember/routing/route'; export default class AdminIndexesItemRoute extends Route { model({ uid }) { - return this.modelFor('admin').find((item) => item.uid === uid); + return this.modelFor('admin').indexes.find((item) => item.uid === uid); } }