Merge pull request #34 from kaermorchen/feature/add-primary-key-in-new-document
Add empty primary key in new document
This commit is contained in:
commit
5739d73f1a
1 changed files with 2 additions and 4 deletions
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue