diff --git a/packages/studio/src/components/nle/NLEPreview.tsx b/packages/studio/src/components/nle/NLEPreview.tsx index 8b51d8852..ebb3b95f5 100644 --- a/packages/studio/src/components/nle/NLEPreview.tsx +++ b/packages/studio/src/components/nle/NLEPreview.tsx @@ -95,7 +95,6 @@ export const NLEPreview = memo(function NLEPreview({ suppressLoadingOverlay, }: NLEPreviewProps) { const baseKey = getPreviewPlayerKey({ projectId, directUrl, refreshKey }); - const prevRefreshKeyRef = useRef(refreshKey); const viewportRef = useRef(null); const stageRef = useRef(null); const [retiringKey, setRetiringKey] = useState(null); @@ -205,13 +204,7 @@ export const NLEPreview = memo(function NLEPreview({ [applyTransform], ); - if (refreshKey !== prevRefreshKeyRef.current) { - const oldKey = `${baseKey}:${prevRefreshKeyRef.current ?? 0}`; - prevRefreshKeyRef.current = refreshKey; - setRetiringKey(oldKey); - } - - const activeKey = `${baseKey}:${refreshKey ?? 0}`; + const activeKey = baseKey; const applyInitialZoom = useCallback(() => { const z = zoomRef.current;