refactor: simplify code head generation
This commit is contained in:
parent
c0b7ed4984
commit
6eb11a8e09
@ -118,10 +118,9 @@ const simplifiedHead = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
let head = [];
|
let head = [];
|
||||||
simplifiedHead.map((tag: SimplifiedHeader) => {
|
simplifiedHead.forEach((tag) => {
|
||||||
let tagName = tag.tag;
|
tag.content.forEach((element: any) => {
|
||||||
tag.content.forEach((element) => {
|
head.push([tag.tag, element]);
|
||||||
head.push([tagName, element]);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user