Skip to content

Commit

Permalink
[Synthetics TLS certificate] Fix error when opening rule flyout (elas…
Browse files Browse the repository at this point in the history
  • Loading branch information
benakansara authored Dec 2, 2024
1 parent d2a60cb commit c4dc230
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ import { useDispatch, useSelector } from 'react-redux';
import React, { useEffect } from 'react';
import { RuleTypeParamsExpressionProps } from '@kbn/triggers-actions-ui-plugin/public';
import { AlertTlsComponent } from './alert_tls';
import { getDynamicSettings } from '../../state/settings/api';
import { selectDynamicSettings } from '../../state/settings';
import { getDynamicSettingsAction, selectDynamicSettings } from '../../state/settings';
import { TLSParams } from '../../../../../common/runtime_types/alerts/tls';
import { DYNAMIC_SETTINGS_DEFAULTS } from '../../../../../common/constants';

Expand All @@ -24,7 +23,7 @@ export const TLSRuleComponent: React.FC<{

useEffect(() => {
if (typeof settings === 'undefined') {
dispatch(getDynamicSettings());
dispatch(getDynamicSettingsAction.get());
}
}, [dispatch, settings]);

Expand Down

0 comments on commit c4dc230

Please sign in to comment.