|
1 | | -import { getCorrelationQueryLogsWithHeaders } from '@/api/query'; |
2 | | -import useMountedState from './useMountedState'; |
3 | | -import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider'; |
4 | | -import _ from 'lodash'; |
5 | | -import { AxiosError } from 'axios'; |
6 | | -import { useStreamStore } from '@/pages/Stream/providers/StreamProvider'; |
7 | 1 | import { |
8 | 2 | CORRELATION_LOAD_LIMIT, |
9 | 3 | correlationStoreReducers, |
10 | 4 | useCorrelationStore, |
11 | 5 | } from '@/pages/Correlation/providers/CorrelationProvider'; |
| 6 | + |
| 7 | +import { AxiosError } from 'axios'; |
| 8 | +import { LogsResponseWithHeaders } from '@/@types/parseable/api/query'; |
| 9 | +import _ from 'lodash'; |
| 10 | +import { getCorrelationQueryLogsWithHeaders } from '@/api/query'; |
12 | 11 | import { notifyError } from '@/utils/notification'; |
| 12 | +import { useAppStore } from '@/layouts/MainLayout/providers/AppProvider'; |
| 13 | +import useMountedState from './useMountedState'; |
13 | 14 | import { useQuery } from 'react-query'; |
14 | | -import { LogsResponseWithHeaders } from '@/@types/parseable/api/query'; |
15 | 15 | import { useState } from 'react'; |
| 16 | +import { useStreamStore } from '@/pages/Stream/providers/StreamProvider'; |
16 | 17 |
|
17 | 18 | const { setStreamData, setIsCorrelatedFlag } = correlationStoreReducers; |
18 | 19 |
|
@@ -69,7 +70,6 @@ export const useCorrelationQueryLogs = () => { |
69 | 70 | notifyError({ message: `${currentStream} doesn't have any fields` }); |
70 | 71 | } |
71 | 72 | }); |
72 | | - setCorrelationStore((store) => setIsCorrelatedFlag(store, true)); |
73 | 73 | }, |
74 | 74 | onError: (data: AxiosError) => { |
75 | 75 | setLoading(false); |
|
0 commit comments