fix type in MkEmojiPicker

This commit is contained in:
dakkar 2025-04-12 11:54:56 +01:00
parent 3ff3484dba
commit dbb04c6c0a

View file

@ -190,7 +190,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;
const currentPath = []; const currentPath = [] as string[];
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);