fix: alertService.confirm

This commit is contained in:
Johnny Almonte
2020-07-14 10:59:46 -04:00
parent e6d87fa40d
commit 875d4f1fc0

View File

@@ -110,14 +110,12 @@ class RevisionPreviewModalCtrl implements RevisionPreviewScope {
if (!asCopy) { if (!asCopy) {
this.application.alertService!.confirm( this.application.alertService!.confirm(
"Are you sure you want to replace the current note's contents with what you see in this preview?", "Are you sure you want to replace the current note's contents with what you see in this preview?"
undefined, ).then((confirmed) => {
undefined, if (confirmed) {
undefined, run();
run, }
undefined, });
true,
);
} else { } else {
run(); run();
} }