Ensure modeled methods are not undefined in usages panel (#2946)

This commit is contained in:
Charis Kyriakou
2023-10-11 09:29:39 +01:00
committed by GitHub
parent e77cf28192
commit 2b47d3d192

View File

@@ -102,7 +102,7 @@ export class MethodsUsageDataProvider
}
private getModelingStatusIcon(method: Method): ThemeIcon {
const modeledMethods = this.modeledMethods[method.signature];
const modeledMethods = this.modeledMethods[method.signature] ?? [];
const modifiedMethod = this.modifiedMethodSignatures.has(method.signature);
const status = getModelingStatus(modeledMethods, modifiedMethod);