fix table designer issues (#18988)

* fix table designer issues

* commit change on blur

* new sts
This commit is contained in:
Alan Ren
2022-04-10 12:09:33 -07:00
committed by GitHub
parent 9fcfe5b23c
commit fe1aefdd5f
5 changed files with 13 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ export class TableDesignerMetadata {
* @returns filtered telemetry info with only allowed metadata points
*/
public static getTelemetryInfo(providerId: string, metadata: { [key: string]: string }): { [key: string]: string } {
if (!TableDesignerMetadata.providerMetadataMap.has(providerId)) {
return undefined;
if (!TableDesignerMetadata.providerMetadataMap.has(providerId) || !metadata) {
return {};
}
const allowedSet = TableDesignerMetadata.providerMetadataMap.get(providerId);
for (const key of Object.keys(metadata)) {
@@ -31,5 +31,4 @@ export class TableDesignerMetadata {
}
return metadata;
}
}