Skip to content

Commit

Permalink
Fix memory leak around emojis on server render (#2674)
Browse files Browse the repository at this point in the history
  • Loading branch information
makotech222 authored Aug 27, 2024
1 parent f456610 commit d69dd15
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/shared/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ export function setupEmojiDataModel(custom_emoji_views: CustomEmojiView[]) {
custom_emoji_views,
x => x.custom_emoji.category,
);
customEmojis.length = 0;
for (const [category, emojis] of Object.entries(groupedEmojis)) {
customEmojis.push({
id: category,
Expand Down

0 comments on commit d69dd15

Please sign in to comment.