diff --git a/AzureFunctions.AngularClient/src/app/function-new/function-new.component.html b/AzureFunctions.AngularClient/src/app/function-new/function-new.component.html
index 9c8de61f56..f50cccce51 100644
--- a/AzureFunctions.AngularClient/src/app/function-new/function-new.component.html
+++ b/AzureFunctions.AngularClient/src/app/function-new/function-new.component.html
@@ -68,7 +68,7 @@
{{ 'functionNew_nameYourFunction' | translate }}
(remove)="onRemoveBinding($event)"
(update)="onUpdateBinding($event)">
-
+
{{ 'eventGrid_createMessage' | translate }}
diff --git a/AzureFunctions.AngularClient/src/app/template-picker/template-picker.component.ts b/AzureFunctions.AngularClient/src/app/template-picker/template-picker.component.ts
index 8c09cdd168..a05bd792f4 100644
--- a/AzureFunctions.AngularClient/src/app/template-picker/template-picker.component.ts
+++ b/AzureFunctions.AngularClient/src/app/template-picker/template-picker.component.ts
@@ -261,17 +261,19 @@ export class TemplatePickerComponent {
this.selectedTemplate = template;
// Some bindings (and templates that use them) require an AAD app; if so, show express button
- let binding = this.bindings.find((b) => {
- return b.type.toString() === this.selectedTemplate;
- });
- if (binding) {
- this.showAADExpressRegistration = !!binding.AADPermissions;
- } else {
- // Could be improved by determining which bindings a template uses automatically
- let templateObject = this.templates.find((t) => {
- return t.value === template;
+ if (this.bindings) {
+ let binding = this.bindings.find((b) => {
+ return b.type.toString() === this.selectedTemplate;
});
- this.showAADExpressRegistration = templateObject && !!templateObject.AADPermissions;
+ if (binding) {
+ this.showAADExpressRegistration = !!binding.AADPermissions;
+ } else {
+ // Could be improved by determining which bindings a template uses automatically
+ let templateObject = this.templates.find((t) => {
+ return t.value === template;
+ });
+ this.showAADExpressRegistration = templateObject && !!templateObject.AADPermissions;
+ }
}
if (!this.showFooter) {