This commit is contained in:
Nikita 2025-10-23 22:21:40 +03:00
parent ca936aada7
commit 9cbeaef88d

View file

@ -204,17 +204,12 @@ export default function ExportModal(Props) {
setStrudelMaxPolyphony(maxPolyphony); setStrudelMaxPolyphony(maxPolyphony);
setStrudelMultiChannelOrbits(multiChannelOrbits); setStrudelMultiChannelOrbits(multiChannelOrbits);
setTimeout(refreshProgress, 1000); setTimeout(refreshProgress, 1000);
await handleExport( await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
startCycle, .then(() => {
endCycle,
sampleRate,
maxPolyphony,
multiChannelOrbits,
downloadName,
).then(() => {
const modal = document.getElementById('exportModal'); const modal = document.getElementById('exportModal');
modal.close(); modal.close();
}).finally(() => { })
.finally(() => {
setExporting(false); setExporting(false);
setProgress(0); setProgress(0);
setLength(1); setLength(1);