From 385ac090787b573caef8fe120f859d5ea967bd59 Mon Sep 17 00:00:00 2001 From: dhartman Date: Tue, 11 Oct 2016 19:04:25 -0400 Subject: [PATCH] fixed issue when the web part is first loaded it does not tell the user to configure the web part. --- .../src/webparts/angularSearch/app/HomeController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/angular-search/src/webparts/angularSearch/app/HomeController.ts b/samples/angular-search/src/webparts/angularSearch/app/HomeController.ts index 3d5283e4c..c87a6804f 100644 --- a/samples/angular-search/src/webparts/angularSearch/app/HomeController.ts +++ b/samples/angular-search/src/webparts/angularSearch/app/HomeController.ts @@ -21,7 +21,7 @@ export default class HomeController { vm.styles = $attrs['style']; vm._web = $attrs['web']; - vm._contentType = $attrs['contenttype']; + vm._contentType = $attrs['contenttype'] === "" ? undefined : $attrs['contenttype']; if (this._contentType !== undefined) { this._init(this._contentType, vm.$scope);