This commit is contained in:
Nikita
2025-10-23 22:21:40 +03:00
parent ca936aada7
commit 9cbeaef88d
+10 -15
View File
@@ -204,21 +204,16 @@ export default function ExportModal(Props) {
setStrudelMaxPolyphony(maxPolyphony);
setStrudelMultiChannelOrbits(multiChannelOrbits);
setTimeout(refreshProgress, 1000);
await handleExport(
startCycle,
endCycle,
sampleRate,
maxPolyphony,
multiChannelOrbits,
downloadName,
).then(() => {
const modal = document.getElementById('exportModal');
modal.close();
}).finally(() => {
setExporting(false);
setProgress(0);
setLength(1);
});
await handleExport(startCycle, endCycle, sampleRate, maxPolyphony, multiChannelOrbits, downloadName)
.then(() => {
const modal = document.getElementById('exportModal');
modal.close();
})
.finally(() => {
setExporting(false);
setProgress(0);
setLength(1);
});
}}
>
<span className="text-foreground">{exporting ? 'Exporting...' : 'Export to WAV'}</span>