Skip to content

Commit

Permalink
fix(modal): don't error on dismiss whithout result handler
Browse files Browse the repository at this point in the history
Fixes #880
Closes #885
  • Loading branch information
pkozlowski-opensource committed Oct 13, 2016
1 parent 7476d86 commit 21de54c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {Injectable, ComponentRef, ViewRef, ViewContainerRef} from '@angular/core
import {NgbModalBackdrop} from './modal-backdrop';
import {NgbModalWindow} from './modal-window';


/**
* A reference to an active (currently opened) modal. Instances of this class
* can be injected into components passed as modal content.
Expand Down Expand Up @@ -43,6 +42,7 @@ export class NgbModalRef {
this._resolve = resolve;
this._reject = reject;
});
this.result.then(null, () => {});
}

/**
Expand Down

0 comments on commit 21de54c

Please sign in to comment.