Add empty primary key in new document
This commit is contained in:
parent
c096e8943e
commit
ac7fee5d0e
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