|
@@ -154,7 +154,7 @@ function ReplaysOnboardingSidebar(props: CommonSidebarProps) {
|
|
|
}
|
|
|
|
|
|
function OnboardingContent({currentProject}: {currentProject: Project}) {
|
|
|
- const jsFrameworkSelectOptions = replayJsFrameworkOptions.map(platform => {
|
|
|
+ const jsFrameworkSelectOptions = replayJsFrameworkOptions().map(platform => {
|
|
|
return {
|
|
|
value: platform.id,
|
|
|
textValue: platform.name,
|
|
@@ -215,8 +215,8 @@ function OnboardingContent({currentProject}: {currentProject: Project}) {
|
|
|
} = useLoadGettingStarted({
|
|
|
platform:
|
|
|
showJsFrameworkInstructions && setupMode() === 'npm'
|
|
|
- ? replayJsFrameworkOptions.find(p => p.id === jsFramework.value) ??
|
|
|
- replayJsFrameworkOptions[0]
|
|
|
+ ? replayJsFrameworkOptions().find(p => p.id === jsFramework.value) ??
|
|
|
+ replayJsFrameworkOptions()[0]
|
|
|
: currentPlatform,
|
|
|
projSlug: currentProject.slug,
|
|
|
orgSlug: organization.slug,
|
|
@@ -226,8 +226,8 @@ function OnboardingContent({currentProject}: {currentProject: Project}) {
|
|
|
// New onboarding docs for initial loading of JS Framework options
|
|
|
const {docs: jsFrameworkDocs} = useLoadGettingStarted({
|
|
|
platform:
|
|
|
- replayJsFrameworkOptions.find(p => p.id === jsFramework.value) ??
|
|
|
- replayJsFrameworkOptions[0],
|
|
|
+ replayJsFrameworkOptions().find(p => p.id === jsFramework.value) ??
|
|
|
+ replayJsFrameworkOptions()[0],
|
|
|
projSlug: currentProject.slug,
|
|
|
orgSlug: organization.slug,
|
|
|
productType: 'replay',
|