Improve tags performance (#1526)

Co-authored-by: Erik De Neve <erik.de.neve@telenet.be>
This commit is contained in:
Alexander Zobnin
2023-03-21 12:16:44 +01:00
parent 07c02ca97a
commit dd6798834a
9 changed files with 194 additions and 106 deletions

View File

@@ -41,7 +41,7 @@ export function expandItemName(name: string, key: string): string {
return name;
}
export function expandItems(items) {
export function expandItems(items: any[]) {
_.forEach(items, (item) => {
item.item = item.name;
item.name = expandItemName(item.item, item.key_);