Change let to const
This commit is contained in:
parent
ef60a1a8ed
commit
794c7f9a1a
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ function parseAndMergeCategories(input: string, root: CustomEmojiFolderTree): Cu
|
||||||
const parts = input.split('/').map(p => p.trim());
|
const parts = input.split('/').map(p => p.trim());
|
||||||
let currentNode: CustomEmojiFolderTree = root;
|
let currentNode: CustomEmojiFolderTree = root;
|
||||||
|
|
||||||
let currentPath = [];
|
const currentPath = [];
|
||||||
for (const part of parts) {
|
for (const part of parts) {
|
||||||
currentPath.push(part);
|
currentPath.push(part);
|
||||||
let existingNode = currentNode.children.find((node) => node.value === part);
|
let existingNode = currentNode.children.find((node) => node.value === part);
|
||||||
|
|
Loading…
Add table
Reference in a new issue