Skip to content

Create polished demo videos without editing skills. Mac/Windows/Linux

fix autonomous open mode

Alan Trebugeais75845df82565
diff --git a/src/components/launch/SourceSelector.tsx b/src/components/launch/SourceSelector.tsx
index f642953b..a7c6ee40 100644
--- a/src/components/launch/SourceSelector.tsx
+++ b/src/components/launch/SourceSelector.tsx
@@ -309,10 +309,10 @@ export const SourceSelector = React.memo(function SourceSelector({
// In autonomous mode, we might want to start open
useEffect(() => {
- if (isAutonomous && !internalOpen) {
+ if (isAutonomous) {
setInternalOpen(true);
}
- }, [isAutonomous, internalOpen]);
+ }, [isAutonomous]);
const trigger = children ? (
React.isValidElement(children) ? (