Skip to content

Commit

Permalink
partがfalsyの場合元のノードに統合
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Oct 29, 2023
1 parent e7da5e3 commit cfb1216
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/frontend/src/components/MkEmojiPicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,8 @@ function parseAndMergeCategories(input: string, root: CustomEmojiFolderTree): Cu
const parts = input.split('/');
let currentNode: CustomEmojiFolderTree = root;

for (let part of parts) {
if (!part) {
part = '';
}
for (const part of parts) {
if (!part) continue;

let existingNode = currentNode.children.find((node) => node.value === part);

Expand Down

0 comments on commit cfb1216

Please sign in to comment.