From 260603f613632850c301f72f0fca267b06b688a0 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Wed, 3 Jun 2026 17:17:40 +0800 Subject: [PATCH] fix warning from js console --- src/renderer/src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index b77637b3..45aabe88 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -626,7 +626,7 @@ function App() { const usingPreviewFile = !!previewFilePath; const effectiveFilePath = previewFilePath || filePath; const fileUri = useMemo(() => { - if (!effectiveFilePath) return ''; // Setting video src="" prevents memory leak in chromium + if (!effectiveFilePath) return undefined; const uri = pathToFileURL(effectiveFilePath).href; // https://github.com/mifi/lossless-cut/issues/1674 if (cacheBuster !== 0) {