change: removed issues_types api call
This commit is contained in:
parent
66f2d9f8d3
commit
f2a035a793
1 changed files with 3 additions and 5 deletions
|
|
@ -3,7 +3,7 @@ import { connect } from 'react-redux';
|
|||
import cn from 'classnames';
|
||||
import { SideMenuitem, SavedSearchList, Progress, Popup } from 'UI'
|
||||
import stl from './sessionMenu.css';
|
||||
import { fetchList, fetchWatchdogStatus } from 'Duck/watchdogs';
|
||||
import { fetchWatchdogStatus } from 'Duck/watchdogs';
|
||||
import { setActiveFlow, clearEvents } from 'Duck/filters';
|
||||
import { setActiveTab } from 'Duck/sessions';
|
||||
import { issues_types } from 'Types/session/issue'
|
||||
|
|
@ -11,7 +11,7 @@ import { issues_types } from 'Types/session/issue'
|
|||
function SessionsMenu(props) {
|
||||
const {
|
||||
activeFlow, activeTab, watchdogs = [], keyMap, wdTypeCount,
|
||||
fetchList, fetchWatchdogStatus, toggleRehydratePanel } = props;
|
||||
fetchWatchdogStatus, toggleRehydratePanel } = props;
|
||||
|
||||
const onMenuItemClick = (filter) => {
|
||||
props.onMenuItemClick(filter)
|
||||
|
|
@ -22,7 +22,6 @@ function SessionsMenu(props) {
|
|||
}
|
||||
|
||||
useEffect(() => {
|
||||
fetchList()
|
||||
fetchWatchdogStatus()
|
||||
}, [])
|
||||
|
||||
|
|
@ -89,12 +88,11 @@ function SessionsMenu(props) {
|
|||
}
|
||||
|
||||
export default connect(state => ({
|
||||
// watchdogs: state.getIn(['watchdogs', 'list']).sortBy(i => i.order),
|
||||
activeTab: state.getIn([ 'sessions', 'activeTab' ]),
|
||||
keyMap: state.getIn([ 'sessions', 'keyMap' ]),
|
||||
wdTypeCount: state.getIn([ 'sessions', 'wdTypeCount' ]),
|
||||
activeFlow: state.getIn([ 'filters', 'activeFlow' ]),
|
||||
captureRate: state.getIn(['watchdogs', 'captureRate']),
|
||||
}), {
|
||||
fetchList, fetchWatchdogStatus, setActiveFlow, clearEvents, setActiveTab
|
||||
fetchWatchdogStatus, setActiveFlow, clearEvents, setActiveTab
|
||||
})(SessionsMenu);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue