Skip to content

Commit 83574a9

Browse files
comment dead code will remove later
1 parent c887eff commit 83574a9

File tree

8 files changed

+11
-17
lines changed

8 files changed

+11
-17
lines changed

src/ui/layouts/pipelines/Pipelines/AllRuns/useService.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { useEffect } from 'react';
2-
import { pipelinesActions, runsActions } from '../../../../../redux/actions';
2+
// import { pipelinesActions, runsActions } from '../../../../../redux/actions';
33
import {
44
pipelinePagesSelectors,
55
runSelectors,
66
} from '../../../../../redux/selectors';
7-
import { useSelector, useDispatch } from '../../../../hooks';
7+
import { useSelector } from '../../../../hooks';
88

99
interface ServiceInterface {
1010
fetching: boolean;
@@ -13,13 +13,7 @@ interface ServiceInterface {
1313

1414
export const useService = (): ServiceInterface => {
1515
const fetching = useSelector(pipelinePagesSelectors.fetching);
16-
// const currentWorkspace = useSelector(pipelinePagesSelectors.currentWorkspace);
1716

18-
// const runs1 = useSelector((state: any) => {
19-
// debugger;
20-
// return state.persisted.runs.allNewRuns || [];
21-
// });
22-
const dispatch = useDispatch();
2317
const runs = useSelector(runSelectors.myRuns);
2418
useEffect(() => {}, [runs]);
2519

src/ui/layouts/pipelines/useService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const useService = (): ServiceInterface => {
2121
}, 5000);
2222

2323
return () => clearInterval(intervalId); //This is important
24-
}, []);
24+
});
2525
return {
2626
organization,
2727
};

src/ui/layouts/runs/Stacks/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { translate } from './translate';
33
import { List } from './List';
44
import { BasePage } from '../BasePage';
55
import { routePaths } from '../../../../routes/routePaths';
6-
import { WorkspaceDropdown } from './WorkspaceDropdown';
6+
// import { WorkspaceDropdown } from './WorkspaceDropdown';
77
import { useService } from './useService';
88

99
const PAGES = [

src/ui/layouts/settings/Organization/DeleteMember.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const DeleteMember: React.FC<{ member: TInvite }> = ({ member }) => {
2828
}, 5000);
2929

3030
return () => clearInterval(intervalId); //This is important
31-
}, []);
31+
});
3232
const onDelete = () => {
3333
setSubmitting(true);
3434
dispatch(

src/ui/layouts/stackComponents/Stacks/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { routePaths } from '../../../../routes/routePaths';
66
// import { WorkspaceDropdown } from './WorkspaceDropdown';
77
import { useService } from './useService';
88
import { useLocationPath } from '../../../hooks';
9-
import { WorkspaceDropdown } from './WorkspaceDropdown';
9+
// import { WorkspaceDropdown } from './WorkspaceDropdown';
1010
import FilterComponent, {
1111
getInitialFilterState,
1212
} from '../../../components/Filters';

src/ui/layouts/stackComponents/useService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { organizationSelectors } from '../../../redux/selectors';
44
import {
55
useDispatch,
66
useLocationPath,
7-
useRequestOnMount,
7+
// useRequestOnMount,
88
useSelector,
99
} from '../../hooks';
1010

@@ -30,7 +30,7 @@ export const useService = (): ServiceInterface => {
3030
}, 5000);
3131

3232
return () => clearInterval(intervalId);
33-
}, []);
33+
});
3434

3535
return {
3636
organization,

src/ui/layouts/stacks/Stacks/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { translate } from './translate';
33
import { List } from './List';
44
import { BasePage } from '../BasePage';
55
import { routePaths } from '../../../../routes/routePaths';
6-
import { WorkspaceDropdown } from './WorkspaceDropdown';
6+
// import { WorkspaceDropdown } from './WorkspaceDropdown';
77
import { useService } from './useService';
88

99
import FilterComponent, {
@@ -58,7 +58,7 @@ const BREADCRUMBS = [
5858

5959
export const Stacks: React.FC = () => {
6060
const { setFetching } = useService();
61-
61+
console.log(setFetching);
6262
return (
6363
<BasePage
6464
tabPages={PAGES}

src/ui/layouts/stacks/useService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export const useService = (): ServiceInterface => {
1818
}, 5000);
1919

2020
return () => clearInterval(intervalId); //This is important
21-
}, []);
21+
});
2222
return {
2323
organization,
2424
};

0 commit comments

Comments
 (0)