We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1dc8729 commit a043f8fCopy full SHA for a043f8f
src/features/videoEditor/components/TrimSlider.jsx
@@ -60,8 +60,11 @@ const TrimSlider = ({
60
for (let i = 0; i < count; i += 1) {
61
list.push(await grab((duration * i) / (count - 1)));
62
}
63
- setIsLoading(false);
64
- setThumbs(list);
+
+ if (list.length === count) {
65
+ setThumbs(list);
66
+ setIsLoading(false);
67
+ }
68
};
69
70
video.addEventListener("loadedmetadata", build, { once: true });
0 commit comments