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