Skip to content

Commit 7584bf9

Browse files
committed
#RI-3479 - fix import, fix call params
1 parent 132cdb5 commit 7584bf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

redisinsight/ui/src/pages/workbench/components/enablement-area/EnablementArea/components/LazyCodeButton/LazyCodeButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const LazyCodeButton = ({ path = '', ...rest }: Props) => {
2727
if (isStatusSuccessful(status)) {
2828
setLoading(false)
2929
const pageInfo = getFileInfo(path)
30-
setScript(data, pageInfo.location, startCase(pageInfo.name))
30+
setScript(data, {}, { path: pageInfo.location, name: startCase(pageInfo.name) })
3131
}
3232
} catch (error) {
3333
setLoading(false)

redisinsight/ui/src/pages/workbench/components/enablement-area/EnablementAreaWrapper.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { monaco } from 'react-monaco-editor'
66
import { useDispatch, useSelector } from 'react-redux'
77
import { useParams } from 'react-router-dom'
88
import { CodeButtonParams, ExecuteButtonMode } from 'uiSrc/pages/workbench/components/enablement-area/interfaces'
9+
import { IInternalPage } from 'uiSrc/pages/workbench/contexts/enablementAreaContext'
910
import { fetchGuides, workbenchGuidesSelector } from 'uiSrc/slices/workbench/wb-guides'
1011
import { fetchTutorials, workbenchTutorialsSelector } from 'uiSrc/slices/workbench/wb-tutorials'
1112
import { sendEventTelemetry, TelemetryEvent } from 'uiSrc/telemetry'
1213

1314
import { Nullable, } from 'uiSrc/utils'
14-
import { IInternalPage } from '../../contexts/enablementAreaContext'
1515

1616
import EnablementArea from './EnablementArea'
1717
import EnablementAreaCollapse from './EnablementAreaCollapse/EnablementAreaCollapse'

0 commit comments

Comments
 (0)