Skip to content

Commit 4032e1a

Browse files
committed
fix(pfEmptyState): Fixed undefined error in pfEmptyState component
1 parent 0274412 commit 4032e1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/empty-state.component.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ angular.module('patternfly.views').component('pfEmptyState', {
123123
ctrl.updateConfig = function () {
124124
prevConfig = angular.copy(ctrl.config);
125125
_.defaults(ctrl.config, ctrl.defaultConfig);
126-
if (ctrl.config.helpLink && angular.isUndefined(ctrl.config.helpLink.url)) {
126+
if (ctrl.config && ctrl.config.helpLink && angular.isUndefined(ctrl.config.helpLink.url)) {
127127
// if no url specified, set url to not redirect. ie. just do urlAction
128128
ctrl.config.helpLink.url = "javascript:void(0)";
129129
}

0 commit comments

Comments
 (0)