Skip to content

Commit 538de9f

Browse files
committed
fix tests
1 parent cae1c64 commit 538de9f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

redisinsight/ui/src/components/database-side-panels/DatabaseSidePanels.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ describe('DatabaseSidePanels', () => {
243243
render(<DatabaseSidePanels />)
244244

245245
const expectedActions = [
246-
getRecommendations(),
247246
changeSelectedTab(InsightsPanelTabs.Explore),
248247
toggleInsightsPanel(true),
249248
]
@@ -255,7 +254,6 @@ describe('DatabaseSidePanels', () => {
255254
render(<DatabaseSidePanels />)
256255

257256
const expectedActions = [
258-
getRecommendations(),
259257
resetExplorePanelSearch(),
260258
setExplorePanelIsPageOpen(false),
261259
changeSelectedTab(InsightsPanelTabs.Explore),

redisinsight/ui/src/pages/database-analysis/components/recommendations-view/Recommendations.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useContext } from 'react'
2-
import { useSelector } from 'react-redux'
2+
import { useDispatch, useSelector } from 'react-redux'
33
import { useParams, useHistory } from 'react-router-dom'
44
import { isNull } from 'lodash'
55
import {
@@ -46,6 +46,7 @@ const Recommendations = () => {
4646

4747
const { theme } = useContext(ThemeContext)
4848
const history = useHistory()
49+
const dispatch = useDispatch()
4950
const { instanceId } = useParams<{ instanceId: string }>()
5051

5152
const handleToggle = (isOpen: boolean, id: string) => sendEventTelemetry({

0 commit comments

Comments
 (0)