Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions redisinsight/ui/src/components/analytics-tabs/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ export const analyticsViewTabs: AnalyticsTabs[] = [
{
id: AnalyticsViewTab.ClusterDetails,
label: 'Overview',
onboard: ONBOARDING_FEATURES.ANALYTICS_OVERVIEW
onboard: ONBOARDING_FEATURES?.ANALYTICS_OVERVIEW
},
{
id: AnalyticsViewTab.DatabaseAnalysis,
label: 'Database Analysis',
onboard: ONBOARDING_FEATURES.ANALYTICS_DATABASE_ANALYSIS
onboard: ONBOARDING_FEATURES?.ANALYTICS_DATABASE_ANALYSIS
},
{
id: AnalyticsViewTab.SlowLog,
label: 'Slow Log',
onboard: ONBOARDING_FEATURES.ANALYTICS_SLOW_LOG
onboard: ONBOARDING_FEATURES?.ANALYTICS_SLOW_LOG
},
]
2 changes: 1 addition & 1 deletion redisinsight/ui/src/components/config/Config.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jest.mock('uiSrc/services', () => ({
},
}))

const onboardingTotalSteps = Object.keys(ONBOARDING_FEATURES).length
const onboardingTotalSteps = Object.keys(ONBOARDING_FEATURES)?.length

describe('Config', () => {
it('should render', () => {
Expand Down
4 changes: 1 addition & 3 deletions redisinsight/ui/src/components/onboarding-features/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { ONBOARDING_FEATURES } from './OnboardingFeatures'

export { ONBOARDING_FEATURES }
export * from './OnboardingFeatures'
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ export const databaseAnalysisTabs: DatabaseAnalysisTabs[] = [
id: DatabaseAnalysisViewTab.Recommendations,
name: (count?: number) => (count ? `Recommendations (${count})` : 'Recommendations'),
content: <Recommendations />,
onboard: ONBOARDING_FEATURES.ANALYTICS_RECOMMENDATIONS
onboard: ONBOARDING_FEATURES?.ANALYTICS_RECOMMENDATIONS
},
]