mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-06 18:07:11 +00:00
undefined check
This commit is contained in:
parent
b8017763b7
commit
cec621443d
@ -129,8 +129,8 @@ async function readCollectionsWithARM(databaseId: string): Promise<DataModels.Co
|
||||
// TO DO: Remove when we get RP API Spec with materializedViews
|
||||
return rpResponse?.value?.map((collection: any) => {
|
||||
const collectionDataModel: DataModels.Collection = collection.properties?.resource as DataModels.Collection;
|
||||
collectionDataModel.materializedViews = collection.properties?.resource.materializedViews;
|
||||
collectionDataModel.materializedViewDefinition = collection.properties?.resource.materializedViewDefinition;
|
||||
collectionDataModel.materializedViews = collection.properties?.resource?.materializedViews;
|
||||
collectionDataModel.materializedViewDefinition = collection.properties?.resource?.materializedViewDefinition;
|
||||
return collectionDataModel;
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user