Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cnasikas committed Nov 4, 2024
1 parent a6b72f3 commit 15ce60b
Show file tree
Hide file tree
Showing 20 changed files with 566 additions and 556 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@ export class AlertNavigationRegistry {

public get(consumer: string, alertType: RuleType): AlertNavigationHandler {
if (this.has(consumer, alertType)) {
const consumerHandlers = this.alertNavigations.get(consumer)!;
return (consumerHandlers.get(alertType.id) ?? consumerHandlers.get(DEFAULT_HANDLER))!;
const consumerHandlers = this.alertNavigations.get(consumer);
return (
consumerHandlers?.get(alertType.id) ?? consumerHandlers?.get(DEFAULT_HANDLER) ?? (() => '')
);
}

throw new Error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export const renderApp = ({
ReactDOM.render(
<KibanaRenderContextProvider i18n={i18n} theme={theme}>
<KibanaContextProvider
// eslint-disable-next-line react-perf/jsx-no-new-object-as-prop
services={{
...core,
...plugins,
Expand Down
Loading

0 comments on commit 15ce60b

Please sign in to comment.