mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-01 01:59:56 +00:00
Fix memory leak around emojis on server render (#2674)
This commit is contained in:
parent
f456610930
commit
d69dd1531b
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue