Skip to content

Commit

Permalink
Fix types and jest
Browse files Browse the repository at this point in the history
  • Loading branch information
Zacqary committed Oct 31, 2022
1 parent e21b64a commit 64e9442
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions x-pack/plugins/alerting/server/rules_client.mock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const createRulesClientMock = () => {
getGlobalExecutionKpiWithAuth: jest.fn(),
getGlobalExecutionLogWithAuth: jest.fn(),
getActionErrorLog: jest.fn(),
getActionErrorLogWithAuth: jest.fn(),
getSpaceId: jest.fn(),
bulkEdit: jest.fn(),
bulkDeleteRules: jest.fn(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export const RuleErrorLog = (props: RuleErrorLogProps) => {
});
setActualTotalItemCount(result.totalErrors);
} catch (e) {
console.log('ERROR', e);
notifications.toasts.addDanger({
title: API_FAILED_MESSAGE,
text: e.body.message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const RuleEventLogListCellRenderer = (props: RuleEventLogListCellRenderer
return newPathname;
}
return ruleRoute;
}, [ruleId, ruleOnDifferentSpace, history, activeSpace, http.basePath, spaceIds]);
}, [ruleId, ruleOnDifferentSpace, history, activeSpace, http, spaceIds]);

const onClickRuleName = useCallback(() => {
if (!ruleId) return;
Expand Down

0 comments on commit 64e9442

Please sign in to comment.