Update export options component structure and logic

This commit is contained in:
2026-07-13 05:01:52 +02:00
parent 6a330eba9d
commit 46ff0a52e1
2 changed files with 8 additions and 4 deletions

View File

@@ -108,7 +108,9 @@ function targetFor(parameter: any): { arrangement?: number; session?: number } {
function findSimplers(node: any, result: any[] = []): any[] {
if (Array.isArray(node)) {
node.forEach((item) => findSimplers(item, result));
node.forEach((item) => {
findSimplers(item, result);
});
return result;
}
if (!node || typeof node !== 'object') {
@@ -117,7 +119,9 @@ function findSimplers(node: any, result: any[] = []): any[] {
if (node.OriginalSimpler) {
result.push(node.OriginalSimpler);
}
Object.values(node).forEach((value) => findSimplers(value, result));
Object.values(node).forEach((value) => {
findSimplers(value, result);
});
return result;
}

View File

@@ -90,13 +90,13 @@ function ExportOptions({ disabled = false }: { disabled?: boolean }) {
{format === 'ableton' && (
<>
<label className="flex flex-col gap-1 mb-2">
<div className="flex flex-col gap-1 mb-2">
<span className="text-sm">Ableton Live version</span>
<SelectField name="abletonVersion" disabled={disabled} className="mr-auto">
<option value="10">Live 10</option>
<option value="11">Live 11+</option>
</SelectField>
</label>
</div>
<CheckboxField
name="includeArchivedSamples"
title="Include samples"