fix(salix): refs #7905 #7905 use right fn to flatten data
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
8aa4427693
commit
d49707828b
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
function flatten(dataArray) {
|
function flatten(dataArray) {
|
||||||
return dataArray.map(item => flatten(item.__data));
|
return dataArray.map(item => flattenObj(item.__data));
|
||||||
}
|
}
|
||||||
function flattenObj(data, prefix = '') {
|
function flattenObj(data, prefix = '') {
|
||||||
let result = {};
|
let result = {};
|
||||||
|
|
Loading…
Reference in New Issue