Skip to content

Commit

Permalink
[Uptime] Repair Alert Flyout (elastic#73528)
Browse files Browse the repository at this point in the history
* Add await to promise.

* Remove lazy loading and reference to lazy resource from validation.

* Revert previous changes and add simpler fix.

* Remove unnecessary formatting changes.

* Further cleanup.

* Add more descriptive import path.

* fix type

* fix type

Co-authored-by: Shahzad <[email protected]>
  • Loading branch information
justinkambic and shahzad31 committed Jul 30, 2020
1 parent 7bdc540 commit db34adb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const initMonitorStatusAlertType: AlertTypeInitializer = ({
validateFunc = validateMonitorStatusParams;
})();
}
return validateFunc && validateFunc(alertParams);
return validateFunc ? validateFunc(alertParams) : ({} as ValidationResult);
},
defaultActionMessage,
requiresAppContext: false,
Expand Down

0 comments on commit db34adb

Please sign in to comment.