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 {
5858 } ) ;
5959
6060 const record = response . data as Record < string , FunctionQueryModel > ;
61+ // seems as if properties can be null, so we need to check for that
6162 Object . values ( record ) . forEach ( data => {
6263 const dataModel : FunctionAppModel = {
63- isFlex : data . properties . sku . toLocaleLowerCase ( ) === 'flexconsumption' ,
64+ isFlex : data . properties ? .sku ? .toLocaleLowerCase ( ) === 'flexconsumption' ,
6465 id : data . id ,
6566 type : data . type ,
6667 kind : data . kind ,
6768 name : data . name ,
6869 resourceGroup : data . resourceGroup ,
69- status : data . properties . state ,
70+ status : data . properties ? .state ,
7071 location : data . location
7172 }
7273 resolver . siteCache . set ( dataModel . id . toLowerCase ( ) , dataModel ) ;
You can’t perform that action at this time.
0 commit comments