diff --git a/app/routes/admin/indexes/item/documents/new.js b/app/routes/admin/indexes/item/documents/new.js index b86fd75..6d2ebd2 100644 --- a/app/routes/admin/indexes/item/documents/new.js +++ b/app/routes/admin/indexes/item/documents/new.js @@ -8,10 +8,8 @@ export default class AdminIndexesItemDocumentsNewRoute extends Route { model() { const index = this.modelFor('admin.indexes.item'); + const document = new Document({ [index.primaryKey]: '' }); - return hash({ - index, - document: new Document(), - }); + return hash({ index, document }); } }