This repository was archived by the owner on Apr 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-11
lines changed
AzureFunctions.AngularClient/src/app Expand file tree Collapse file tree 2 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ <h3>{{ 'functionNew_nameYourFunction' | translate }}</h3>
68
68
(remove) ="onRemoveBinding($event) "
69
69
(update) ="onUpdateBinding($event) "> </ binding >
70
70
71
- < div *ngIf ="model.trigger.type === 'eventGridTrigger' " class ="alert alert-warning alert-dismissible " role ="alert ">
71
+ < div *ngIf ="model.trigger && model.trigger .type === 'eventGridTrigger' " class ="alert alert-warning alert-dismissible " role ="alert ">
72
72
{{ 'eventGrid_createMessage' | translate }}
73
73
</ div >
74
74
Original file line number Diff line number Diff line change @@ -261,17 +261,19 @@ export class TemplatePickerComponent {
261
261
this . selectedTemplate = template ;
262
262
263
263
// Some bindings (and templates that use them) require an AAD app; if so, show express button
264
- let binding = this . bindings . find ( ( b ) => {
265
- return b . type . toString ( ) === this . selectedTemplate ;
266
- } ) ;
267
- if ( binding ) {
268
- this . showAADExpressRegistration = ! ! binding . AADPermissions ;
269
- } else {
270
- // Could be improved by determining which bindings a template uses automatically
271
- let templateObject = this . templates . find ( ( t ) => {
272
- return t . value === template ;
264
+ if ( this . bindings ) {
265
+ let binding = this . bindings . find ( ( b ) => {
266
+ return b . type . toString ( ) === this . selectedTemplate ;
273
267
} ) ;
274
- this . showAADExpressRegistration = templateObject && ! ! templateObject . AADPermissions ;
268
+ if ( binding ) {
269
+ this . showAADExpressRegistration = ! ! binding . AADPermissions ;
270
+ } else {
271
+ // Could be improved by determining which bindings a template uses automatically
272
+ let templateObject = this . templates . find ( ( t ) => {
273
+ return t . value === template ;
274
+ } ) ;
275
+ this . showAADExpressRegistration = templateObject && ! ! templateObject . AADPermissions ;
276
+ }
275
277
}
276
278
277
279
if ( ! this . showFooter ) {
You can’t perform that action at this time.
0 commit comments