fix(salix): refs #7905 #7905 use right fn to flatten data
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-09-05 09:13:33 +02:00
parent 8aa4427693
commit d49707828b
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
function flatten(dataArray) {
return dataArray.map(item => flatten(item.__data));
return dataArray.map(item => flattenObj(item.__data));
}
function flattenObj(data, prefix = '') {
let result = {};