mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-03-13 05:15:30 +00:00
fix unit tests
This commit is contained in:
parent
c9f84901e7
commit
84b30accf6
@ -20,6 +20,6 @@ export function isPublicInternetAccessAllowed(): boolean {
|
|||||||
|
|
||||||
export function getWorkloadType(): WorkloadType {
|
export function getWorkloadType(): WorkloadType {
|
||||||
const tags: Tags = userContext?.databaseAccount?.tags;
|
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;
|
return workloadType;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user