From 25d1f9254c2aac6139b32ccc00a7a4f8380bc1ae Mon Sep 17 00:00:00 2001 From: Gomasy Date: Mon, 4 May 2026 18:09:17 +0900 Subject: [PATCH] [Glitch] Fix emoji picker not rendering when no custom emojis Port 00c2089e81ebdd4a94612f1bed7d143fc2772bb3 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/features/emoji/picker.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/javascript/flavours/glitch/features/emoji/picker.ts b/app/javascript/flavours/glitch/features/emoji/picker.ts index 2c7a9301b7..d74930e4db 100644 --- a/app/javascript/flavours/glitch/features/emoji/picker.ts +++ b/app/javascript/flavours/glitch/features/emoji/picker.ts @@ -29,7 +29,8 @@ export async function fetchCustomEmojiData() { const { loadAllCustomEmoji } = await import('./database'); const emojisRaw = await loadAllCustomEmoji(); if (emojisRaw.length === 0) { - return []; + customEmojis = []; + return customEmojis; } const categories = new Set(['custom']);