mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-21 22:27:11 +00:00
Fix memory leak around emojis on server render (#2674)
This commit is contained in:
parent
f456610930
commit
d69dd1531b
|
@ -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