diff --git a/src/components/CreateVersion/CreateVersion.tsx b/src/components/CreateVersion/CreateVersion.tsx index c55c3884d..a1e08cf57 100644 --- a/src/components/CreateVersion/CreateVersion.tsx +++ b/src/components/CreateVersion/CreateVersion.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'; import { httpGet, httpPost } from '../../lib/http'; import { useToast } from '../../hooks/use-toast'; import { isLoggedIn } from '../../lib/jwt'; -import { GitFork, Layers2, Loader2, Map } from 'lucide-react'; +import { GitFork, Loader2, Map } from 'lucide-react'; import { showLoginPopup } from '../../lib/popup'; import type { RoadmapDocument } from '../CustomRoadmap/CreateRoadmap/CreateRoadmapModal.tsx'; @@ -67,11 +67,9 @@ export function CreateVersion(props: CreateVersionProps) { return; } - const roadmapEditorUrl = `${ + window.location.href = `${ import.meta.env.PUBLIC_EDITOR_APP_URL }/${response?.roadmapId}`; - - window.open(roadmapEditorUrl, '_blank'); } if (isLoading) {