mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 15:26:27 +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,
|
custom_emoji_views,
|
||||||
x => x.custom_emoji.category,
|
x => x.custom_emoji.category,
|
||||||
);
|
);
|
||||||
|
customEmojis.length = 0;
|
||||||
for (const [category, emojis] of Object.entries(groupedEmojis)) {
|
for (const [category, emojis] of Object.entries(groupedEmojis)) {
|
||||||
customEmojis.push({
|
customEmojis.push({
|
||||||
id: category,
|
id: category,
|
||||||
|
|
Loading…
Reference in a new issue