mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 18:01:39 +00:00
fix unit tests
This commit is contained in:
@@ -20,6 +20,6 @@ export function isPublicInternetAccessAllowed(): boolean {
|
||||
|
||||
export function getWorkloadType(): WorkloadType {
|
||||
const tags: Tags = userContext?.databaseAccount?.tags;
|
||||
const workloadType: WorkloadType = tags[TagNames.WorkloadType] as WorkloadType;
|
||||
const workloadType: WorkloadType = tags && (tags[TagNames.WorkloadType] as WorkloadType);
|
||||
return workloadType;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user