Fix NPE
This commit is contained in:
parent
9408138230
commit
870d5ed0c5
1 changed files with 6 additions and 3 deletions
|
@ -2585,7 +2585,7 @@ quayApp.directive('focusablePopoverContent', ['$timeout', '$popover', function (
|
||||||
$body = $('body');
|
$body = $('body');
|
||||||
var hide = function() {
|
var hide = function() {
|
||||||
$body.off('click');
|
$body.off('click');
|
||||||
|
|
||||||
if (!scope) { return; }
|
if (!scope) { return; }
|
||||||
scope.$apply(function() {
|
scope.$apply(function() {
|
||||||
if (!scope) { return; }
|
if (!scope) { return; }
|
||||||
|
@ -4841,11 +4841,14 @@ quayApp.directive('stepView', function ($compile) {
|
||||||
|
|
||||||
this.next = function() {
|
this.next = function() {
|
||||||
if (this.currentStepIndex >= 0) {
|
if (this.currentStepIndex >= 0) {
|
||||||
if (!this.getCurrentStep().scope.completeCondition) {
|
var currentStep = this.getCurrentStep();
|
||||||
|
if (!currentStep || !currentStep.scope) { return; }
|
||||||
|
|
||||||
|
if (!currentStep.scope.completeCondition) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.getCurrentStep().element.hide();
|
currentStep.element.hide();
|
||||||
|
|
||||||
if (this.unwatch) {
|
if (this.unwatch) {
|
||||||
this.unwatch();
|
this.unwatch();
|
||||||
|
|
Reference in a new issue