Fix sample container is not populated with items (#459)
This commit is contained in:
parent
56b5a9861b
commit
4127d0f522
|
@ -61,6 +61,7 @@ describe("ContainerSampleGenerator", () => {
|
|||
const database = {
|
||||
id: ko.observable(sampleDatabaseId),
|
||||
collections: ko.observableArray<ViewModels.Collection>([collection]),
|
||||
loadCollections: () => {},
|
||||
} as ViewModels.Database;
|
||||
database.findCollectionWithId = () => collection;
|
||||
|
||||
|
@ -109,6 +110,7 @@ describe("ContainerSampleGenerator", () => {
|
|||
const database = {
|
||||
id: ko.observable(sampleDatabaseId),
|
||||
collections: ko.observableArray<ViewModels.Collection>([collection]),
|
||||
loadCollections: () => {},
|
||||
} as ViewModels.Database;
|
||||
database.findCollectionWithId = () => collection;
|
||||
collection.databaseId = database.id();
|
||||
|
|
|
@ -63,6 +63,7 @@ export class ContainerSampleGenerator {
|
|||
if (!database) {
|
||||
return undefined;
|
||||
}
|
||||
await database.loadCollections();
|
||||
return database.findCollectionWithId(this.sampleDataFile.collectionId);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue