Skip to content

🎥 Make videos programmatically with React

Elements: Default Browser Studio link imports to new composition

Jonny Burger0b31eb6d4013
diff --git a/packages/studio/src/components/ElementInstallConfirmation.tsx b/packages/studio/src/components/ElementInstallConfirmation.tsx
index 7f3a6e5b33..0acca579fe 100644
--- a/packages/studio/src/components/ElementInstallConfirmation.tsx
+++ b/packages/studio/src/components/ElementInstallConfirmation.tsx
@@ -402,7 +402,9 @@ export const ElementInstallConfirmation: React.FC<{
const usesBrowserDependencyResolution = getBrowserStudioOperations() !== null;
const {currentZIndex} = useZIndex();
const [mode, setMode] = useState<'current-composition' | 'new-composition'>(
- currentPlan === null ? 'new-composition' : 'current-composition',
+ currentPlan === null || request.source.type === 'browser-studio-link'
+ ? 'new-composition'
+ : 'current-composition',
);
const [submitting, setSubmitting] = useState(false);
const inputRef = useRef<HTMLInputElement>(null);