We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ed71b71 + 8bb759a commit 65bb04bCopy full SHA for 65bb04b
2 files changed
web/src/hooks/useDomains.tsx
@@ -7,7 +7,9 @@ import { State } from '../redux-reducers';
7
8
// The alert domain is dependent on alert Rules state , so we need a hook for domains
9
export const useDomains = () => {
10
- const alertRules = useSelector((state: State) => state.observe?.get('rules'));
+ const alertRules = useSelector(
11
+ (state: State) => state?.plugins?.mp?.alerting?.cmo?.['#ALL_NS#']?.rules,
12
+ );
13
14
const alertIDs = React.useMemo(() => {
15
if (!alertRules) return new Map<string, string>();
web/src/redux-reducers.ts
@@ -9,6 +9,8 @@ export type State = {
observe: TPState;
plugins: {
tp: TPState;
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
+ mp: any;
};
16
0 commit comments