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;
}