We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7ce155 commit 6af9a4cCopy full SHA for 6af9a4c
1 file changed
src/FunctionAppResolver.ts
@@ -58,15 +58,16 @@ export class FunctionAppResolver implements AppResourceResolver {
58
});
59
60
const record = response.data as Record<string, FunctionQueryModel>;
61
+ // seems as if properties can be null, so we need to check for that
62
Object.values(record).forEach(data => {
63
const dataModel: FunctionAppModel = {
- isFlex: data.properties.sku.toLocaleLowerCase() === 'flexconsumption',
64
+ isFlex: data.properties?.sku?.toLocaleLowerCase() === 'flexconsumption',
65
id: data.id,
66
type: data.type,
67
kind: data.kind,
68
name: data.name,
69
resourceGroup: data.resourceGroup,
- status: data.properties.state,
70
+ status: data.properties?.state,
71
location: data.location
72
}
73
resolver.siteCache.set(dataModel.id.toLowerCase(), dataModel);
0 commit comments