File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -58,15 +58,16 @@ export class FunctionAppResolver implements AppResourceResolver {
58
58
} ) ;
59
59
60
60
const record = response . data as Record < string , FunctionQueryModel > ;
61
+ // seems as if properties can be null, so we need to check for that
61
62
Object . values ( record ) . forEach ( data => {
62
63
const dataModel : FunctionAppModel = {
63
- isFlex : data . properties . sku . toLocaleLowerCase ( ) === 'flexconsumption' ,
64
+ isFlex : data . properties ? .sku ? .toLocaleLowerCase ( ) === 'flexconsumption' ,
64
65
id : data . id ,
65
66
type : data . type ,
66
67
kind : data . kind ,
67
68
name : data . name ,
68
69
resourceGroup : data . resourceGroup ,
69
- status : data . properties . state ,
70
+ status : data . properties ? .state ,
70
71
location : data . location
71
72
}
72
73
resolver . siteCache . set ( dataModel . id . toLowerCase ( ) , dataModel ) ;
You can’t perform that action at this time.
0 commit comments