Skip to content

Commit 04734b3

Browse files
committed
fix: try to run hook once
1 parent be1d27a commit 04734b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/components-react/root/StudioEditor.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ export default function StudioEditor() {
4343

4444
const [studioModeTransitionName, setStudioModeTransitionName] = useState<string>();
4545
useEffect(() => {
46-
TransitionsService.actions.return.getStudioTransitionName().then(setStudioModeTransitionName);
46+
if (!studioModeTransitionName) {
47+
TransitionsService.actions.return.getStudioTransitionName().then(setStudioModeTransitionName);
48+
}
4749
}, [v.studioMode]);
4850

4951
const sourceId = useMemo(() => {

0 commit comments

Comments
 (0)