Skip to content

Commit 1662cbb

Browse files
committed
fixup! ✨(frontend) add an EmojiPicker in the document tree
1 parent 14a9af0 commit 1662cbb

File tree

1 file changed

+4
-0
lines changed
  • src/frontend/apps/impress/src/features/docs/doc-management/components

1 file changed

+4
-0
lines changed

src/frontend/apps/impress/src/features/docs/doc-management/components/DocIcon.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ export const DocIcon = ({
2929
onEmojiUpdate,
3030
...textProps
3131
}: DocIconProps) => {
32+
if (!emojiPicker && !emoji) {
33+
return defaultIcon;
34+
}
35+
3236
const { t } = useTranslation();
3337
const { updateDocEmoji } = useDocTitleUpdate();
3438

0 commit comments

Comments
 (0)