Update export options component structure and logic
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user