From a043f8f28c0ae84022a3234363ce4cc2d80350dc Mon Sep 17 00:00:00 2001 From: cholulu99 Date: Wed, 18 Jun 2025 23:45:11 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=94=84=EB=A0=88=EC=9E=84=20=EC=A0=95?= =?UTF-8?q?=EB=B3=B4=EB=A5=BC=20=EC=9D=BD=EB=8A=94=20=EB=8F=84=EC=A4=91=20?= =?UTF-8?q?=EB=A1=9C=EB=94=A9=20=EB=AA=A8=EB=8B=AC=EC=9D=B4=20=EA=BA=BC?= =?UTF-8?q?=EC=A7=80=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=20?= =?UTF-8?q?-=20close=20#40?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/features/videoEditor/components/TrimSlider.jsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/features/videoEditor/components/TrimSlider.jsx b/src/features/videoEditor/components/TrimSlider.jsx index 40a6c6d..3e29333 100644 --- a/src/features/videoEditor/components/TrimSlider.jsx +++ b/src/features/videoEditor/components/TrimSlider.jsx @@ -60,8 +60,11 @@ const TrimSlider = ({ for (let i = 0; i < count; i += 1) { list.push(await grab((duration * i) / (count - 1))); } - setIsLoading(false); - setThumbs(list); + + if (list.length === count) { + setThumbs(list); + setIsLoading(false); + } }; video.addEventListener("loadedmetadata", build, { once: true });